Search found 4 matches

by irish91001
Mon Oct 14, 2013 12:36 am
Forum: Testing and Simulation
Topic: Move Stop to Breakeven
Replies: 5
Views: 5566

Well, I gave it a go this weekend and I don't think I have the programming quite right. I created a new Entry/Exit block with the following: IF instrument.position = LONG AND instrument.high >= targetPrice THEN broker.ExitUnitAtLimit (1, targetPrice)AND instrument.setexitstop (1, instrument.unitEntr...
by irish91001
Fri Oct 11, 2013 7:28 pm
Forum: Testing and Simulation
Topic: Move Stop to Breakeven
Replies: 5
Views: 5566

Roger, Thanks for the help. However, I'm not finding the Target Price exit. I have looked at the AdjustPositionAtLimit price, but that doesn't allow me to move the stop. Where am I going wrong here? Also, is this where I would put the coding, before the technical indicator exit? If instrument.positi...
by irish91001
Thu Oct 10, 2013 5:40 pm
Forum: Testing and Simulation
Topic: Move Stop to Breakeven
Replies: 5
Views: 5566

Move Stop to Breakeven

Right now I have a system where I enter a trade and use a fixed stop. I'm interested in running a simulation where I trade 2 contracts and move my stop to breakeven once a profit reaches a certain a dollar amount (i.e. $1,000). If it's not reasonable to use a profit amount, I could replace it with t...
by irish91001
Tue Aug 21, 2012 4:54 pm
Forum: Money Management
Topic: margin to equity ratio
Replies: 4
Views: 6832

margin to equity ratio

Am I understanding the Margin to Equity aspect correctly? If I set the ratio to 50%, then my system will not take any trades that put it over the 50% limit of margin requirments? While trading a basket of futures, I just want to ensure my backtesting is as accurate as can be and the potential of get...