AFL COding Help

sach007

Impatient Trader
Joined
Jun 3, 2010
Messages
1,098
Likes
814
Location
TRADE-CITY
#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.
 
Joined
Aug 3, 2010
Messages
50
Likes
17
#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

Broker Special Offers