Traders Laboratory - View Single Post - Easylanguage and Script Help
View Single Post
  #26 (permalink)  
Old 03-28-2008, 07:55 AM
Blu-Ray's Avatar
Blu-Ray Blu-Ray is online now
Blu-Ray has no status.

Trader Specs
 
Join Date: Nov 2006
Location: England
Posts: 406
Thanks: 92
Thanked 40 Times in 26 Posts
Re: Easylanguage and Script Help

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

__________________
Remember - Take the path of least resistance.
Reply With Quote