I want to develop a simple strategy of some ema crossovers for forex, when they occur I want to draw a symbol - say an red down arrow on the screen to indicate that a short side trade might be developing for me after the crossover - how do I display the symbol on the chart at the point of this ema crossover? Also, want to display a horizontal line in the chart about 10 pips above or below this crossover to indicate entry point for a trade? I don't want ninja to execute a trade, just want to show it on the chart so I can judge for myself whether to place a trade or not.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Draw symbol on price chart?? How??
Collapse
X
-
Draw symbol on price chart?? How??
Hello,
I want to develop a simple strategy of some ema crossovers for forex, when they occur I want to draw a symbol - say an red down arrow on the screen to indicate that a short side trade might be developing for me after the crossover - how do I display the symbol on the chart at the point of this ema crossover? Also, want to display a horizontal line in the chart about 10 pips above or below this crossover to indicate entry point for a trade? I don't want ninja to execute a trade, just want to show it on the chart so I can judge for myself whether to place a trade or not.Tags: None
-
Hi jimwolfe,
There's a great tutorial on crossovers at - http://www.ninjatrader-support.com/H...OverConditions
Similarly, on drawing from a strategy using the wizard - http://www.ninjatrader-support.com/H...rawingOnAChart
Additionally, every other week there is a webinar titled "Automated Strategy Development Level 1". Please see the link in my signature for more information and a full schedule of events.TimNinjaTrader Customer Service
-
Backtesting
Hi Tim,
Thanks, I will review the links you sent and attend the webinar - are there recorded versions of past webinars to view? Also, once I get the strategy built, can I run it against say my 15 days of historical data on the forex price charts to test it to see if the symbols displayed on the charts in the proper places - based on historical data?
Thanks,
Jim
Comment
-
Hi jimwolfe,
Unfortunately, they are not recorded.
You can apply a strategy to a chart via the right click menu, then enable in the Strategies tab of the Control Center.
More info at - http://www.ninjatrader-support.com/H...tegiesOnChartsTimNinjaTrader Customer Service
Comment
-
Adding ADX value
Hi Tim,
I think I have the EMA cross and symbols working, I want to add one more parameter - I want the ADX 14 value to be rising up, and that is was below or equal to 20 in the past 5 bars - the code doesn't seem to be working for me?
Thanks!
Comment
-
Hi jimwolfe,
For the rising condition, please see the first screenshot.
For the "below or equal to 20 in the past 5 bars " condition, we would normally use CountIf(), but that would require you to unlock the code and enter manually.
More info at - http://www.ninjatrader-support.com/H...e.html?CountIf
You could still do this with the wizard, but it would require multiple sets of conditions where ADX(14)[0] > 20, then ADX(14)[1] > 20, etc.TimNinjaTrader Customer Service
Comment
-
Email signal
Thanks, the ADX rising advice worked nicely! Now I need to add an email signal,which I have done, but if I have the strategy running on several currency par charts at the same time, how do I set the email signal to identify the currency par from the chart it is on, meaning if I have the strategy running on a EUR/USD 5 min chart and at the same time have it running on a GBP/JPY 5 min chart and the strategy fires on the EUR chart, I want to receive an email that tells me the strategy fired on the EUR chart, and not the GBP chart, can I do this?
Thanks,
Jim
Comment
-
Hi jimwolfe,
Two options...
1. You can add either...
Instrument.FullName
or
Instrument.MasterInstrument.Name
to the subject or text of the email, however, you would first need to unlock the code, otherwise the wizard automatically inserts quotations.
2. You can create two (or several) version's of the strategy and put the name of the instrument you are applying it to in the subject or text.TimNinjaTrader Customer Service
Comment
-
Hi
After unlocking the code, you could do something like.
Code:SendMail("[email protected]", "[email protected]", "Trade Alert", Instrument.FullName);
and - http://www.ninjatrader-support.com/H...rumentFullNameTimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,605 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
4 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
13 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment