AFL COding Help

sach007

Impatient Trader
#1
Hi,
I want some help. How can put a code in afl that when buy/cover signal buy at next day open price and when sell signal sell/short. at next day open price.

Presently when I try to code ... it takes that days low as buying price on eod chart.
 
#2
Hi,
I want some help. How can put a code in afl that when buy/cover signal buy at next day open price and when sell signal sell/short. at next day open price.

Presently when I try to code ... it takes that days low as buying price on eod chart.
you can use plotshapes(....) with condition is barssince(buy)==1: and barssince(sell)==1:
 

Similar threads