SMA at Daily Open
4 replies
alvin
8 years ago #114385
Hi, how can I make conditions as follows (all at Daily Open):
Daily Open > SMA 34 at Daily Open;
SMA 34 at Daily Open > SMA 50 at Daily Open;
Thanks.
tomas262
8 years ago #133736
alvin
8 years ago #133743
Hi Thomas. Thanks for your help. When I add an alert to your conditions, it seems like it only alert once on H1 chart, at the opening of the daily bar. Meaning the conditions are only true at the daily opening bar. When the conditions are true at the daily open, how can I get the alert throughout the day on H1 chart?
I wish I could attach my strategy file and screenshot.
Thanks again.
tomas262
8 years ago #133813
You need to use variable for this. See example attached
If the condition is valid at the open, strategy is allowed to trade that day. It is reset when new day begins and also our condition is tested again (every day)
alvin
8 years ago #133821
Thanks very much.
Viewing 4 replies - 1 through 4 (of 4 total)