NexusFi: Find Your Edge


Home Menu

 





How to plot a custom indicator as an OHLC chart?


Discussion in Platforms and Indicators

Updated
    1. trending_up 1,695 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments




 
Search this Thread

How to plot a custom indicator as an OHLC chart?

  #1 (permalink)
markroc
Roanoke VA
 
Posts: 1 since Apr 2015
Thanks Given: 0
Thanks Received: 0

Hello,
I have the indicator below (VBal) I am using to calculate the uptick vs downtick balance for the NQ.

Vup=IIf(C>Ref(C,-1),V,0);
Vdown=IIf(C<Ref(C,-1),V*-1,0);
Vs=IIf(C==Ref(C,-1),1,0);
VupSame=IIf(C==Ref(C,-1) AND Ref(Vup,-(BarsSince(Vs==0)))>0,V,0);
VdownSame=IIf(C==Ref(C,-1) AND Ref(Vdown,-(BarsSince(Vs==0)))<0,V*-1,0);

VBal=IIf(Day()==Ref(Day(),-1),Sum(Vup,BarsSince(Day()!=Ref(Day(),-1)))+Sum(Vdown,BarsSince(Day()!=Ref(Day(),-1)))+Sum(VupSame,BarsSince(Day()!=Ref(Day(),-1)))+Sum(VdownSame,BarsSince(Day()!=Ref(Day(),-1))),V);

Can someone help me with how to plot this custom indicator as an OHLC chart in amibroker? Is there a way to use the addcomposite function to set the O,H,L,C values and plotforeign?

Thanks,
Mark

Reply With Quote




Last Updated on May 17, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts