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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Quad, 1 invisible), 927 guests, and 5 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
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,726
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,726
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