Simple Coding Help - No Promise.

AFL posted by bunti, request some one to create exploration for this AFL


Code:
Plot(C, "Close",colorLightGrey,styleCandle);

buy = C > ref(H,-1);
sell = C < ref(L,-1);

//where,

//C = current days close ,
//ref = is used when u want to use historical values,
//-1 = previous bar ....-2 prior to previous bar and so on......,
//H = high of the day,
//L = low of the day.

Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);

//this exrem func will eliminate repetative signals once the buy/sell condition met,


PlotShapes( Buy*shapeUpArrow, colorWhite, 0, Low );
PlotShapes( Sell*shapeDownArrow, colorWhite, 0, High );
 
Made some botched up job by copy pasting :confused:
Code:
Buy=Close > Ref(H,-1);
Sell=Close < Ref(L,-1);
Filter=Buy OR Sell;
SetOption("NoDefaultColumns", False );
AddColumn( DateTime(), "Date", formatDateTime );
AddColumn( IIf( Buy, 66, 83 ), "Signal", formatChar );
please if some one can correct this.
 

Nehal_s143

Well-Known Member
Made some botched up job by copy pasting :confused:
Code:
Buy=Close > Ref(H,-1);
Sell=Close < Ref(L,-1);
Filter=Buy OR Sell;
SetOption("NoDefaultColumns", False );
AddColumn( DateTime(), "Date", formatDateTime );
AddColumn( IIf( Buy, 66, 83 ), "Signal", formatChar );
please if some one can correct this.

try this, replace buy1 with your buy condition

Code:
Filter = Buy1 OR Sell1 OR Short1 OR Cover1;
AddColumn(IIf(Buy1, BuyPrice, 0),  "Buy", 6.2);
AddColumn(IIf(Sell1, SellPrice, 0),  "Sell", 6.2);
AddColumn(IIf(Short1, ShortPrice, 0),  "Short", 6.2);
AddColumn(IIf(Cover1, CoverPrice, 0),  "Cover", 6.2);
AddColumn(Close,"Close",1.2);
 
Hello Friends ...

How can i drag banknifty rsi on nifty rsi on nifty chart like we can do it in metastock ???

Use PlotForeign method
 

Similar threads