Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 01:18:37 +0000



Post From: Automated Trading

[2019-02-26 14:07:37]
Sawtooth - Posts: 3976
Not a single order is triggered. I can not find the mistake.
Ticksize is found in J21. You'll need to reference it.

Assuming the Daily OHLC study is at the top of the Studies to Graph list,
and that its 'Reference Days Back' is set to 1,
and you want yesterday's Open to be between yesterday's High and Low, but not equal to either,
and you want to trigger an entry if the current Last price is within 2 ticks of yesterday's High or Low,
and you only want the first occurrence of either trade direction,
and you always want to alternate longs and shorts:

P3:
=IF(AND(E3>=AB3-2*$J$21,AA3<AB3,AA3>AC3), 1, IF(AND(E3<=AC3+2*$J$21,AA3<AB3,AA3>AC3), 0, P4))
K3:
=AND(P4 = 0, P3)
M3:
=AND(P4, P3 = 0)

Note: this is an example of the necessity for specificity.
Date Time Of Last Edit: 2019-03-06 21:51:33