NexusFi: Find Your Edge


Home Menu

 





plot arrow when candle closes above/below the moving averages


Discussion in Platforms and Indicators

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




 
Search this Thread

plot arrow when candle closes above/below the moving averages

  #1 (permalink)
venkatbabu
coimbatore,Tamilnadu,India
 
Posts: 6 since Oct 2013
Thanks Given: 7
Thanks Received: 0

Want to plot arrow when candle closes above/below the moving averages (20 and 100 MA )
Image attached


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
Cheap historycal L1 data for stocks
Stocks and ETFs
Better Renko Gaps
The Elite Circle
Strategy stop orders partially filled
EasyLanguage Programming
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 occasionallurker 
London UK
 
Posts: 18 since Mar 2014

 
Code
//by [email protected] (formerly BMT)

Ma20 = MA( C, 20 );
Ma100 = MA( C, 100 );

MAcondup = C > Ma20 AND C > Ma100;
MAconddn = Ma20 > C AND Ma100 > C;
MaCondup = ExRem( MaCondup, MaConddn );
MaConddn = ExRem( MaConddn, Macondup );

Plot( C, "Price", colorDefault, GetPriceStyle() );

dist = -15;
upcolor = colorGreen;
PlotShapes( MAcondup*shapeUpArrow, upcolor, 0, L, dist );
PlotShapes( MAcondup*shapeHollowUpArrow, colorLightYellow, 0, L, dist );
PlotShapes( Ref( MAcondup, -0 )*shapeHollowSmallCircle, upcolor, 0, Close, 0 );

dncolor = colorRed;
PlotShapes( MAconddn*shapeDownArrow, dncolor, 0, H, dist );
PlotShapes( MAconddn*shapeHollowDownArrow, colorLightYellow, 0, H, dist );
PlotShapes( Ref( MAconddn, -0 )*shapeHollowSmallCircle, dncolor, 0, Close, 0 );

Reply With Quote




Last Updated on May 29, 2014


© 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