Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 00:37:01 +0000



[Programming Help] - TradingAllowed and trade triggersignals

View Count: 599

[2018-07-25 22:32:40]
bala - Posts: 74
My program generates signals based on stops. They generate correctly.

If I auto trade and set a bartime to start a trade window , signals generated before the window start are ignored .

example:
+++++++++++++++++++++
generate signals based on ATR( buy /sell);

set bool TradingAllowed = BarTime >= HMS_TIME(8,30,0) && BarTime < HMS_TIME(13, 05, 0);

if   (TradingAllowed and buy signal)
buy;
+++++++++++++++++++++

Say a buy signal generated at 8:15 and is valid at 8:30, a buy should execute at 8:30. It doesn't happen. The system trades only signals generated at or after 8:30. All signals generated AFTER 8:30 are traded.


Since I am not generating the signal within the window, why is it being ignored?
[2018-07-25 22:44:03]
bala - Posts: 74
PLease ignore this request, I will submit a new request if required

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account