Welcome to the Traders Laboratory Forums.
Automated Trading Black box systems, strategy automation, algorithmic trading, etc...

Reply
Old 03-11-2010, 04:59 PM   #1

Join Date: Dec 2009
Location: Skara
Posts: 1
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts



Avoid Reentry in Easy Language

Hi Trading friends

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;
magjson is offline  
Reply With Quote
Old 03-12-2010, 12:42 AM   #2

Join Date: Feb 2008
Location: charleston
Posts: 63
Ignore this user

Thanks: 7
Thanked 21 Times in 16 Posts



Re: Avoid Reentry in Easy Language

really not enough info magjson


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
statsign is offline  
Reply With Quote
The Following User Says Thank You to statsign For This Useful Post:
magjson (03-12-2010)

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

All times are GMT -4. The time now is 04:36 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
Đ2006-2011 Traders Laboratory, All Rights Reserved.