PDA

View Full Version : Stochastic Programming


tomydispik
08-07-2008, 09:39 PM
So I am working witht he scripting wizard and cant get the programming down to trigger my logic when entering parameters like:
Draw a line when stochastics crosses below the 80 line
Draw a line when stochastics crosses above the 20 line

Same thing when I work in the Williams R.

Does anyone have any ideas?

NinjaTrader_Ray
08-08-2008, 07:17 AM
First you need to determine what the problem is?

- Is the condition not being met?
- Problem with drawing the line?

You can tell if a condition is being met by inserting an action of Printing something to the output window in addition to drawing a line. Then open the Output window and if you see something then you know its working --> Then you can take a look at the DrawLine parameters you are using.

tomydispik
08-08-2008, 08:30 AM
No, it isnt that the condition is not met, I dont know how to script when the stochastic crosses the 80 line in the parameters field

First you need to determine what the problem is?

- Is the condition not being met?
- Problem with drawing the line?

You can tell if a condition is being met by inserting an action of Printing something to the output window in addition to drawing a line. Then open the Output window and if you see something then you know its working --> Then you can take a look at the DrawLine parameters you are using.

NinjaTrader_Ray
08-08-2008, 09:39 AM
The following Help Guide link will provide you some guidance on how to create a cross condition in the Wizard.

http://www.ninjatrader-support.com/HelpGuideV6/ConditionBuilder-CrossOverConditions.html