Easylanguage Signal

  • Job DurationLess than a week
  • Project LevelBasic Level
  • Project deadlineExpired

Project detail

I am currently running an automated trading strategy(Signal) that incorporates numerous stops applicable to a current trade. What I need is an algorithm, in Easylanguage that addresses a stop all trading when a certain positive dollar amount is reached. see my present attempt below.

[Allowsendordersalways = TRUE]
{Intraorderbargeneration = TRUE}

If marketposition = 0 ( 1 ?? )
and netprofit > 0
and netprofit < 325
then begin
setstopposition ;
setexitonclose ;
end;

I need the algorithm(s) to address progressively increasing values such as $325 and then $525 and then $725 and then $1000. The algorithm needs to state that if the "netprofit" exceeds the $325 mark the it will proceed next to the $525 mark and so on and so on until it comes to the $1000 mark at which time it stops all trading. What I am trying to achieve is an algorithm that protects my profits at certain dollar levels. I do not want trading to continue if "netprofit" falls below any of the targeted dollar amounts thereby protecting those bracketed profits.

Industry Categories

Freelancer type required for this project