Kindly code this afl for amibroker semi auto trade in pi ( i need to trade like open=low =buy,open=high=sell at the opening of the live market for intraday at 9. 15 to9. 20 am )

PHP Code:

Buy = TimeFrameGetPrice(“L”,inDaily,0)==TimeFrameGetPrice(“O”,inDaily,0) ;

Sell = TimeFrameGetPrice(“H”,inDaily,0)==TimeFrameGetPrice(“O”,inDaily,0) ;

Filter=Buy OR Sell;

AddColumn(IIf(Buy,BuyPrice,Null)," open=low ", 6.2,1.2,colorGreen);

AddColumn(IIf(Sell,SellPrice,Null)," open= high ",6.2,1.2,colorOrange);

BUY

REF(LOW,1)=REF(OPEN,1)

SELL


REF(OPEN,1)=REF(HIGH,1)
2 Likes

please check now it is working,

1 Like

Open High Low Strategy

https://www.youtube.com/edit?o=U&video_id=kjZSjZujMcc

1 Like

BUY
REF(LOW,1)=REF(OPEN,1)
SELL
REF(OPEN,1)=REF(HIGH,1)

This OHL Condition I want to test on few scripts and only between 9.15 - 9.30. Can you please let me know how to do this.

1 Like