Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (TipmyPip, AndrewAMD, dBc, clonman), 18,621 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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