| Automated Trading Black box systems, strategy automation, algorithmic trading, etc... |
![]() | | Tweet | |
| | #1 | ||
![]() | Avoid Reentry in Easy Language How can I stop Tradestation from taking a new position directly when Stoploss/trailstop has been hit. I donīt wont to use crosses over function. Thanks for your help. Best regards Magnus inputs: FastMovAvg(12), SlowMovAvg(26), Stoploss (2), trailstop (2); Vars: Mashort ( 0 ), Malong (0); Mashort=Average(close, FastMovAvg); Malong=Average(close, SlowMovAvg); If Mashort > Malong then buy next bar at market; if MarketPosition <> 0 then begin Setstopcontract; SetStopLoss(Stoploss*Bigp ointvalue); Setdollartrailing(trailst op*Bigpointvalue); End; | ||
| |
|
| | #2 | ||
![]() | Re: Avoid Reentry in Easy Language easiest way if trading intrabar- a boolean coupled with a stop loss formula instead of using SetStopLoss If oktotrade and Mashort > Malong then buy next bar at market; if C <= entryprice - Stoploss then begin sell next bar market; oktotrade = false; end; not enough info because you have to have logic to reset oktotrade | ||
| |
|
| The Following User Says Thank You to statsign For This Useful Post: | ||
magjson (03-12-2010) | ||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easy Language Question | TraderDay1983 | Automated Trading | 6 | 04-09-2010 07:36 AM |
| MCFX Power Language(Easy Language) Coding Issue | fireworkz | Coding Forum | 4 | 02-28-2010 12:32 PM |
| Help with OEC Indicator Easy Language | minitrader | Open E Cry | 3 | 10-23-2009 01:26 PM |
| Easy Language Help | JKLM | Automated Trading | 7 | 02-11-2009 12:17 AM |
| Help with Easy Language | BrianA | Coding Forum | 29 | 01-13-2009 04:32 PM |