NexusFi: Find Your Edge


Home Menu

 





Printing Price that a signal fires at on the chart


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one mainstream with 3 posts (0 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 bukkan with 1 posts (1 thanks)
    4. looks_4 vegasfoster with 1 posts (0 thanks)
    1. trending_up 4,591 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread

Printing Price that a signal fires at on the chart

  #1 (permalink)
 mainstream 
Chicago, IL
 
Experience: Master
Platform: Kinetick Ninja Trader <7>
Broker: Ninja & IB
Trading: YM & Equities & Options & Mutual Funds
Posts: 174 since Jun 2010
Thanks Given: 57
Thanks Received: 88

How would you print on the screen the exact price that a signal fires. Like if 5 crosses above 20 at 1235. How do I put the "1235" on the chart above the bar that triggers the trade?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #3 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271



mainstream View Post
How would you print on the screen the exact price that a signal fires. Like if 5 crosses above 20 at 1235. How do I put the "1235" on the chart above the bar that triggers the trade?

well your query is not very clear, but what i understood is it will be Close[0]

for example if your code is if Stochastics crosses 80 then draw an string (DrawText) below the bar bar low then the code will look like

 
Code
DrawText("tag",Close[0].ToString(),0,Low[0],Color.Blue);

Reply With Quote
Thanked by:
  #4 (permalink)
 vegasfoster 
las vegas
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Velocity/IB
Trading: 6E
Posts: 1,145 since Feb 2010
Thanks Given: 304
Thanks Received: 844


mainstream View Post
How would you print on the screen the exact price that a signal fires. Like if 5 crosses above 20 at 1235. How do I put the "1235" on the chart above the bar that triggers the trade?


Essentially you are trying to plot the value of 20, so the code below will plot the value of the 20 on the chart. The problem is that it will only work correctly with COBC = True. If you want it to plot in real time, the code below will put it there if the condition is true, but it won't remove it if the condition becomes false during the same bar. I haven't figured out how to do that, maybe a good programmer here could explain how to do that.
If(Close[0] > EMA(20)[0] && Close[1] < EMA(20)[1]

{double MAValue = Math.Round(EMA(20),2);
string MAoutput = MAValue.ToString();

DrawText(CurrentBar.ToString() + "BarSize",MAoutput,0,High[0]+5*TickSize,Color.Black);}

Reply With Quote
  #5 (permalink)
 dimitri 
Athens - Greece
 
Experience: Intermediate
Platform: Metastock
Posts: 76 since Jul 2010
Thanks Given: 202
Thanks Received: 36

Hi to All,
This is something i am trying to find .... long time ago. If i can interprete our friend "mainstream" is that:
Assuming we are viewing DAX and we have plotted two (2) moving averages, one is 5 periods Moving Average and the other is 20 periods MA. Now supose we see Price (C)= 7032 , MovAv_5= 7030 and MovAv_20= 7028, the question is 1)How To SHOW and 2)How To Calculate following convention : What should be next comming Price that MovAv_5 = MovAv_20 and Show it on the screen.
Regards
Dimitri

Reply With Quote
  #6 (permalink)
 mainstream 
Chicago, IL
 
Experience: Master
Platform: Kinetick Ninja Trader <7>
Broker: Ninja & IB
Trading: YM & Equities & Options & Mutual Funds
Posts: 174 since Jun 2010
Thanks Given: 57
Thanks Received: 88

I guess jargon doesn't translate well.

If 5 ema crosses 20 ema

meaning the 5 and the 20 have the instance the cross occurs, and the instance occurs at ES 1235.

Plot 1235 above the bar when it occurs. Or at the close of the bar.

It's nice to have arrows. It's nicer to have the value of the arrow, Nes Pas.

Started this thread Reply With Quote




Last Updated on December 13, 2010


© 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