Gamestudio Links
Zorro Links
Newest Posts
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 3,370 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joe_kane, Namitha_NN, Syndrela, agasior, mosfet
19189 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: 28,050
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,050
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