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,498 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 1 attachments




 
Search this Thread
  #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?
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
Pakistan Mediator in Tehran as Hormuz Normalization Coll …
Prediction Markets & Event Contracts
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Four New E-mini Futures Launch June 29 -- Russell 3000, …
Emini and Emicro Index
The Backwardation Signal: How the CL Futures Curve Tells …
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 occasionallurker 
London UK
 
Posts: 18 since Mar 2014

 
Code
//by occasionallurker@NexusFi (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


© 2026 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 - Downloads - Top
no new posts