Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 889 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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