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,436 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?
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Kalshi Sets $4.13B All-Time Weekly Record as Polymarket …
Prediction Markets & Event Contracts
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
The Confluence Meter: A Multi-Layered Signal Framework B …
The Elite Circle
Orban Crashes to 21pct on Record Turnout -- McIlroy Drop …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 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