NexusFi: Find Your Edge


Home Menu

 





Close[2] == High[2]


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one cory with 1 posts (1 thanks)
    2. looks_two Silvester17 with 1 posts (1 thanks)
    3. looks_3 Big Mike with 1 posts (1 thanks)
    4. looks_4 ceramictilepro with 1 posts (0 thanks)
    1. trending_up 1,925 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 ceramictilepro 
Roseville CA
 
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21

Hello,

I was trying to make an indicator to draw an arrow based on the following but the arrow is not drawing on the chart.

Any help would be appreciated

if(Close[2] == High[2] && Close[1] == Low[1]

{draw an arrow on the current bar}

Thank You


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
Building a free browser DOM/SMC simulator - need some ad …
Platforms and Indicators
What we know about Binances $6.3bn hack - BBC News
Cryptocurrency
My Rant with AMP Futures
Trading Reviews and Vendors
Bitcoin’s 2022 low, 2025 high and 2026 low so far arou …
Cryptocurrency
 
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,099 since Jun 2009
Thanks Given: 877
Thanks Received: 8,098


a) you are missing the right parenthesis )

b) put this inside the bracket

DrawArrowUp("MyArrowUp"+CurrentBar, 0, Low[0] -3* TickSize, Color.DodgerBlue);


Reply With Quote
Thanked by:
  #4 (permalink)
 
Silvester17's Avatar
 Silvester17 
Columbus, OH
Market Wizard
 
Experience: None
Platform: NT 8, TOS
Trading: ES
Posts: 3,603 since Aug 2009
Thanks Given: 5,139
Thanks Received: 11,531


ceramictilepro View Post
Hello,

I was trying to make an indicator to draw an arrow based on the following but the arrow is not drawing on the chart.

Any help would be appreciated

if(Close[2] == High[2] && Close[1] == Low[1]

{draw an arrow on the current bar}

Thank You

not exactly sure what you're trying to do. did a quick test indicator. maybe it will help you.


Attached Files
Elite Membership required to download: test.cs
Reply With Quote
Thanked by:
  #5 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 R.I.P. 1977-2026 
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,599


ceramictilepro View Post
Hello,

I was trying to make an indicator to draw an arrow based on the following but the arrow is not drawing on the chart.

Any help would be appreciated

if(Close[2] == High[2] && Close[1] == Low[1]

{draw an arrow on the current bar}

Thank You

Check the log tab?

Do you have a:

if (CurrentBar < 2) return;

?

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on August 28, 2012


© 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