View Full Version : Lower High script for NT
rehtrade
03-30-2009, 09:36 AM
Hi,
I would like to write a script for a higher Low when Macd > MA but can't figure out how to write a Higher Low.
Could you please show me how to do that?
Also, I have some set ups, I would like to try in real time and was wondering how I can do that in Sim mode, so I can see it real time.
Plus, it looked like a can set up an exit or trailing stop in real time. Can we do this in sim mode in a live market?
Also, I was wondering if it is possible to only get 1 alert when my signal appears? I don't want to get the signal again and again as it continues to show up as that trade is in process. Is there a way to only receive one sound and text alert?
Thank you,
Rachel
NinjaTrader_Josh
03-30-2009, 09:49 AM
Rachel,
Please see this reference sample: http://www.ninjatrader-support2.com/vb/showthread.php?t=8600
You will have to kind of merge the ideas to get a higher low.
You can do anything you want in sim mode on a live market, just run your strategy on the Sim101 account and it will all be simulated trading against real-time data.
If you only want one alert you will have to limit it yourself by creating a condition that will evaluate to false after it makes the first alert.
ctrlbrk
03-30-2009, 09:49 AM
can't figure out how to write a Higher Low.
Could you please show me how to do that?
Rachel,
// higher low
Low[0] > Low[1]
// lower high
High[0] < High[1]
HTH,
Mike
rehtrade
03-30-2009, 10:24 AM
Thanks Josh,
Let me see if I understand you correctly.
I am running my strategy on my chart, with my trade action steps: long and shorts etc.
If I have another chart window open, in sim mode, is that the way to do it?
If not, please point me to the link, that shows me how to do sim mode 101.
Thanks
Rachel
rehtrade
03-30-2009, 10:27 AM
Just one question, what is // ?
I am trying to do this in Ninja Script Wizard.
Thank you again,
Rachel
NinjaTrader_Josh
03-30-2009, 10:30 AM
Rachel,
As you start a strategy you have the option to choose which account to trade on. Please select the Sim101 account. You only need one chart.
// signifies a line of code that is commented out. This is code that is not evaluated, but is there just for making reading easier. Irrelevant if you are using the Wizard.
rehtrade
03-30-2009, 10:40 AM
Josh,
In the Edit Strategy: Stops and Targets,
When I set the SetStopLoss to "Simulated", is that setting it to Sim101 mode?
Please provide the link, that shows me exactly how to set the sim101 for a live strategy.
Thank you,
Rachel
NinjaTrader_Josh
03-30-2009, 10:50 AM
Rachel,
There is nothing you need to set in the Strategy Wizard for Sim101. When you start your strategy you have a strategy selection dialogue window. There is a parameter called "Account" that is where you just have to set it to Sim101.
rehtrade
03-30-2009, 10:50 AM
Hi again Josh,
I can't set my NT to Global Simulation Mode because I have 3 working orders that are swing plays, so I am not getting out of them any time soon.
I thought, we could have a strategy running in sim mode and also trade?
Please provide the step by step actions to take.
Thank you,
Rachel
PS I have IB brokerage, in case that makes a difference.
NinjaTrader_Josh
03-30-2009, 10:53 AM
Rachel,
You can. Just select the proper account. Select Sim101 for the strategy you want to simulate.
rehtrade
03-30-2009, 11:01 AM
Josh,
Listen, I need a little more detail than what you are providing.
1. I have a chart on Gold.
2. I have my startegy running on it, with out any go long or go short on my set ups.
I go an put those entries with a stop and trailing stop.
when I do to put that strategy back on the chart, just by placing it, will it be live? Or will something else happen. Am I suppose to get that strategy working from another window?
Because running the strategy without any long or short entries has not brought up any windows?
Please be more specific.
This is my first time and I don't want it to be live.
Thank you,
Rachel
NinjaTrader_Josh
03-30-2009, 11:05 AM
Rachel,
I am being as specific as I can. Please look at the screenshot in my prior posts. All you do is change the strategy you wish to run in simulated mode to use the Sim101 account. That is it. Whichever strategy you want to run on your live brokerage account, just select your brokerage account in that field. Whichever strategy you want simulated, choose Sim101.
rehtrade
03-30-2009, 11:21 AM
Thanks Josh,
I was having problems pulling up windows.
I appreciate the visual.
Thank you for your patience,
Rachel