Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, howardR), 460 guests, and 6 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
Emulate non-tick mode in live trading #486207
06/23/22 18:47
06/23/22 18:47
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline OP
Member
MegaTanker  Offline OP
Member
M

Joined: Aug 2021
Posts: 101
Haven't found anything in the manual but maybe I missed it. Normally in Test mode with M1 date Stops etc. are evaluated once per bar (without TICKS mode). But in trading, they are evaluated at every tick received by the broker plugin. In the interest of keeping the conditions the same between Test and Trade mode, is there a feature to only have Stops etc. evaluated once per bar in Trade mode?

Re: Emulate non-tick mode in live trading [Re: MegaTanker] #486208
06/23/22 18:54
06/23/22 18:54
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
To do that, check for exit conditions at run() calls only and don't set Stop. Loop through your open trades and exit the ones that are losing too much.

Re: Emulate non-tick mode in live trading [Re: MegaTanker] #486221
06/26/22 06:49
06/26/22 06:49
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
Better do it the other way, set TICKS when it makes a large difference.

When in live trading a stop is hit, you normally dont want to wait for the next bar to exit, do you?

Re: Emulate non-tick mode in live trading [Re: MegaTanker] #486222
06/26/22 09:59
06/26/22 09:59
Joined: Aug 2021
Posts: 101
M
MegaTanker Offline OP
Member
MegaTanker  Offline OP
Member
M

Joined: Aug 2021
Posts: 101
Problem is this is already on 1 min bars and I don't have more precise data than that. In that case it would make sense to have the real trading session be consistent with the backtest system. It might make little to no difference, but the problem is I can't simply find out.

But yes, manual exit checks once per bar are of course an option to make it consistent.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1