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

Reply
Old 04-09-2009, 05:03 AM   #17

Join Date: Jul 2008
Location: Valdosta, GA
Posts: 48
Ignore this user

Thanks: 1
Thanked 0 Times in 0 Posts



Re: Easy Language Stop Loss Problem

Can you use a

SetProfitTarget(33%);
SetStopLoss(8%);

using a % instead of a number, and is that how you code it, and how do you code an ATR trailing stop I've seen several authors refer to using to implement a stop loss?

Thanks for any help.
clbradley is offline  
Reply With Quote
Old 11-20-2009, 01:20 PM   #18

Join Date: Nov 2009
Location: Niles
Posts: 5
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts



Re: Easy Language Stop Loss Problem

So why wouldn't this work?

If MarketPosition = 1 then
Begin
SetStopShare ;
SetStopLoss ( LongEntryPrice - (0.002 * LongEntryPrice) ) ;
End ;

If MarketPosition = -1 then
Begin
SetStopShare ;
SetStopLoss ( ShortEntryPrice + (0.002 * ShortEntryPrice) ) ;
End ;
drosengarden is offline  
Reply With Quote
Old 12-04-2009, 08:07 PM   #19

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,772
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts



Re: Easy Language Stop Loss Problem

Quote:
Originally Posted by drosengarden »
So why wouldn't this work?

If MarketPosition = 1 then
Begin
SetStopShare ;
SetStopLoss ( LongEntryPrice - (0.002 * LongEntryPrice) ) ;
End ;

If MarketPosition = -1 then
Begin
SetStopShare ;
SetStopLoss ( ShortEntryPrice + (0.002 * ShortEntryPrice) ) ;
End ;


SetProfitTarget and SetStopLoss orders
are posted to broker when there is an open position.

The target and stop will be automatically* withdrawn
if the position is closed.

* automatic means you do not need to code a logic to withdraw the orders,
they are done automatically as soon as the position is closed.
__________________



Only an idiot would reply to a stupid post

Last edited by Tams; 12-04-2009 at 08:18 PM.
Tams is offline  
Reply With Quote
Old 02-14-2010, 02:26 PM   #20

Join Date: Dec 2007
Location: Yorkville
Posts: 44
Ignore this user

Thanks: 22
Thanked 42 Times in 18 Posts



Re: Easy Language Stop Loss Problem

One thing I've found using the stoploss feature is that if you have multiple strategies running, you should be aware that the stoploss execution doesn't care from which strategy it is triggered.
Uli Schmuli is offline  
Reply With Quote
Old 02-15-2010, 04:02 AM   #21

UrmaBlume's Avatar

Join Date: Apr 2008
Location: Las Vegas
Posts: 670
Ignore this user

Thanks: 87
Thanked 618 Times in 251 Posts



Trade Station Development Team

A few weeks ago I had occasion to chat with the leadership of the TS development team and they acknoledged certain issues with the TS Trade Manager.

They say that TS v 9.0 will be out this summer and among the changes will be a millisecond time stamp and EL orders will become "smart objects."

As their oldest customer I was about to bail on them which would have meant a major migration effort as over the years we have written over 2k EL code modules.
UrmaBlume is offline  
Reply With Quote
Old 02-15-2010, 04:11 AM   #22

UrmaBlume's Avatar

Join Date: Apr 2008
Location: Las Vegas
Posts: 670
Ignore this user

Thanks: 87
Thanked 618 Times in 251 Posts



MarketPosition can never be -2

Quote:
Originally Posted by Firefly »
Hi, thanks for replying to my post. unfortunately i still cant get it to work. when i input "EXITPrice(0) in the variables it doesnt like it.i was trying to get the following:

if marketposition = -2 AND the price of"sell2" < CURRENTPRICE+0.0005 then begin:

obviously easy language doesnt like that though + i had a look at EXITprice and it says the following:If last trade exited at 455.75 then ExitPrice(1) = $455.75im not sure thats what im looking for
MarketPosition will never be -2. MarketPosition can only be 1 or 0 or -1, however MarketPosition * CurrentShares could be -2.
UrmaBlume is offline  
Reply With Quote
Old 02-20-2010, 03:28 AM   #23

erikgrav's Avatar

Join Date: Feb 2010
Location: Hellerup
Posts: 1
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts



Re: Easy Language Stop Loss Problem

Where can you use this "Easy Language"?
erikgrav is offline  
Reply With Quote
Old 02-20-2010, 03:41 AM   #24

Join Date: Nov 2006
Location: N/A
Posts: 612
Ignore this user

Thanks: 62
Thanked 294 Times in 177 Posts



Re: Easy Language Stop Loss Problem

Quote:
Originally Posted by erikgrav »
Where can you use this "Easy Language"?
In tradestation. And before you ask what tradestation is, try using Google first.
sevensa is offline  
Reply With Quote

Reply

Tags
profit target, stop loss

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy Language Strategy Help Marc33139 Automated Trading 3 07-28-2008 11:35 AM
Need Assintance with Simple Indikator ( Easy Language ) flyingdutchmen Coding Forum 1 06-30-2008 06:32 PM
Stop Loss Stop Loss Trailing rod30 Beginners Forum 8 02-23-2008 10:49 AM
Easy ADE Problem bigboy Coding Forum 1 02-08-2008 06:59 PM
Easy Language - Help with Simple System gatrader E-mini Futures Trading Laboratory 8 12-17-2007 06:40 PM

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