need simple formula , just see this

#1
Can pls post amibroker formula;

want to plot a chart with formula:
YOTC= if(yesterday open=today's close, {if yes}yesterday's YOTC, {if no}(if( yesterday open<today's close,YOTC+today's close,YOTC-todays close));

YOTC i.e. YesterdayOpenTodayClose

just like OBV.. obv sees previous close todays close and results volume...
I want to see previous open and todays close and result in close price.

need this one pls pls pls pls pls..... if u know coding pls do write this code. please dont take it easy please. pls share...
thanks in advance.

l what i used present is SUM but: system is hanging due to heavy one min data.

_SECTION_BEGIN("C,-C PRE 1DAYS OPEN TO CLOSE");
br=BarsSince(BarIndex()==1)+1;
diff = C - ref(O,-1);
xv=IIf(diff==0,0,iif(diff>0,c,-c));
tv=Sum(xv,br);
Plot(tv , _DEFAULT_NAME(),styleline);
_SECTION_END();

Not using SUM, anything possible.???

thanks.... balaji.
 

Similar threads

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?