Traders Laboratory - View Single Post - Easylanguage and Script Help
View Single Post
  #33 (permalink)  
Old 03-30-2008, 01:12 PM
darknite999 darknite999 is offline
darknite999 has no status.

 
Join Date: Mar 2008
Posts: 25
Thanks: 8
Thanked 0 Times in 0 Posts
This member is the original thread starter. Re: Easylanguage and Script Help

Quote:
View Post
Quote:
View Post
Is it possible that I can buy back 30 ticks below the entry on the same bar (if the low goes down that far) if not then the 1st bar that the low gets low enough to buy back at 30 ticks below the entry?
Just noticed your edited part, yes you can. Remove the red line below:

if mp = -1 then begin
buytocover ("ProfitTarget") next bar at ShortEntry - (ProfTarget*mintick) limit;
buytocover ("StoppedOut") next bar at mystop stop;
end;


and the add this to the bottom of the script:

setprofittarget( x );

Note: the profit target is now in dollar amount rather than number of ticks.

Cheers

Blu-Ray


Great but how do I do the same to the stoploss now please?

Cheers,
Darknite

Reply With Quote