SMA at Daily Open
4 replies
alvin
11 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.
0
Tomas Matejka
11 years ago #133736
hi alvin,
it could be done like this considering daily open to be the price at 00:00
0
alvin
11 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.
0
Tomas Matejka
11 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)
0
alvin
11 years ago #133821
Thanks very much.
0
Viewing 4 replies - 1 through 4 (of 4 total)