Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 900 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
zorro not placing order when trying to use it as a scalper #457658
01/26/16 04:05
01/26/16 04:05
Joined: Jan 2016
Posts: 16
R
roshanbaba Offline OP
Newbie
roshanbaba  Offline OP
Newbie
R

Joined: Jan 2016
Posts: 16
I have added the set(TICKS) flag but y isnt zorro placing an order while trading. It seems to work fine while testing.

I want to use the script as a scalper...which would run on every tick.

I am a newbie with zorro s module..

the outline script looks like this....


function run()
{
set(TICKS);
......
.....
}


when I use only the tick function then it says there is no MAIN or RUN function.

Last edited by roshanbaba; 01/26/16 10:27.
Re: zorro not placing order when trying to use it as a scalper [Re: roshanbaba] #457681
01/26/16 14:52
01/26/16 14:52
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Trading normally produces the same results as testing. So check first if the not placed orders are maybe just a normal behavior of the script. Otherwise use printf statements for checking why and when the trade conditions in your script are not fulfilled.

Re: zorro not placing order when trying to use it as a scalper [Re: jcl] #457688
01/26/16 17:03
01/26/16 17:03
Joined: Jun 2013
Posts: 1,609
D
DdlV Offline
Serious User
DdlV  Offline
Serious User
D

Joined: Jun 2013
Posts: 1,609
Welcome roshanbaba!

Probably best to clarify a few things...

set(TICKS) applies to Test - it determines how the History files are processed in Test.

If I understand correctly what you're trying to accomplish, you need BOTH run() and tick() functions. run() is the required "master" function for Trading and will be called on every bar, however you've defined the bars. tick() would be called on every tick.

HTH.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1