Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Where to start if I want to create a strategy on a trading set-up?
Collapse
X
-
Good morning
I have a baby breakthrough tonight. Finally succeeded in capturing the higher time frame conditions as a filter when triggering signals on a lower time frame. My trillion thanks to Ryan for his guidance this week.
I estimate that my script has a minor bug as it's experiencing arrows' overlapping issue on the same candle. Appreciate any tips to fix it please.
My filter codes:
World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.
Here it comes a screen shot on the current arrows' overlapping issue:
World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.
Thank you.
Comment
-
Good afternoon
I modified my multi-time frame indicator (with bull and bear filters) over the weekend. Up/Down arrows and Green/Red diamonds have been plotting normal during Market replay and real-time environment. Unfortunately, the audio alerts have not been beeping most of the time when I have Up/Down arrows. Appreciate your suggestion to solve the audio myth. Here it comes my script:
World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.
Thank you.
Comment
-
You should separate 1)troubleshooting sound playback by code and 2) evaluating the exact condition there.
You should first try with a simplified script that is made to only play sound with a simple condition. This is a real time only action. Once you verify it's working you can integrate it into your script.
If sound does not playback in a simple script, check that:- File exists in folder C:\Program Files\NinjaTrader 7\sounds
- No error messages in log tab of control center.
- It triggers in real time.
- Can play the sound manually when clicking on it from Windows explorer / My computer.
To evaluate if the condition triggers in real time, use a simple print statement which will send to the Tools > Output Window.
if (myCondition && !Historical)
Print("This condition triggered in real time");Ryan M.NinjaTrader Customer Service
Comment
-
Hi Ryan
Thanks for your prompt advice. I did more trouble-shooting incl market replay on different markets. I nailed down why the audio alert has not been beeping too often. FYI: It did beep .. just not very diligent lol!
Mystery solved and now I know exactly when it will beep. Thank you. Have a great week.
Comment
-
Good afternoon
I added a SendMail Alert to my indicator and it's working. Unfortunately, the suggested price has too many decimals lol. For example,
Sell 6E 1.36311820640099
I have the following Codes:
Under Variables
privatedouble longEntryPrice = 999999999;
privatedouble shortEntryPrice = 0;
Under protected override void OnBarUpdate()
SendMail("[email protected]","[email protected]","Alert:"+ "Buy 6E"+longEntryPrice,"Buy 6E"+longEntryPrice);
SendMail("[email protected]","[email protected]","Alert:"+ "Sell 6E"+shortEntryPrice,"Buy 6E"+shortEntryPrice);
Please help. Thank you.
Comment
-
Sos
My SendMail alert has sent me over a few hundreds alerts already for the past half hour. I was market replaying using 500 speed for some minutes. Believe my indicator has a looping code in it. Is there a way to stop the system so that it will stop sending us the remaining alerts? Or have to wait until all alerts dry up?? Please help!
Comment
-
Use Round2TickSize to ensure that your prices print sensible values.Originally posted by belecona View PostGood afternoon
I added a SendMail Alert to my indicator and it's working. Unfortunately, the suggested price has too many decimals lol. For example,
Sell 6E 1.36311820640099
I have the following Codes:
Under Variables
privatedouble longEntryPrice = 999999999;
privatedouble shortEntryPrice = 0;
Under protected override void OnBarUpdate()
SendMail("[email protected]","[email protected]","Alert:"+ "Buy 6E"+longEntryPrice,"Buy 6E"+longEntryPrice);
SendMail("[email protected]","[email protected]","Alert:"+ "Sell 6E"+shortEntryPrice,"Buy 6E"+shortEntryPrice);
Please help. Thank you.
etcCode:double RoundedLE = Instrument.MasterInstrument.Round2TickSize(longEntryPrice); SendMail("[email protected]","[email protected]","Alert:"+ "Buy 6E"+RoundedLE,"Buy 6E"+RoundedLE);
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
651 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
577 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Now I will monitor my new-born baby for a few days before releasing it .. haha .. Have a nice weekend.
Comment