PDA

View Full Version : Are wins/losses stored in the script, how to count them?


forrestang
09-12-2009, 02:41 AM
Howdy,

I am wanting to ammend a strategy I have created to create various p/L models based on position size.

What I want to do, is for example add a contract after every # of wins. I dont want the strategy to do this for autotrading purposes, but just to create various models.

To do this, I need to find out how to get rather or not the last trade was a win or loss. How can I do this?

Once I have that value, I would like to put a counter in each of the entry conditions and increment it, and if a looser occurs, start it over maybe, or decrement it? I haven't figured that out, but for now I just need to obtain the win/loss for the most recent trade.

Thanks,
Forrest

NinjaTrader_Ben
09-12-2009, 12:23 PM
Hello,

You options for money management are discussed and illustrated in this link:
http://www.ninjatrader-support2.com/vb/showthread.php?t=4084

If you have any other questions, please attempt to code it then post that code and we will provide help if we can.