Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

palmcarl

Members
  • Content Count

    1
  • Joined

  • Last visited

Personal Information

  • First Name
    TradersLaboratory.com
  • Last Name
    User
  • City
    Madrid
  • Country
    Spain
  • Gender
    Male

Trading Information

  • Vendor
    No
  1. Hello, I am a total easylangguage newbie and try to figure out how to scale out a trade in a trading strategy. My system should buy e.g. 3 contracts and sell 1 contract at various Dollar Profit targets. I tried it this way: if condition1 then begin Buy ( "Firstcontract" ) 1 contract next bar at market; SetStopContract; SetProfitTarget(25); Buy ( "Secondcontract" ) 1 contract next bar at market; SetStopContract; SetProfitTarget(100); Buy ( "Thirdcontract" ) 1 contract next bar at market; SetStopContract; SetProfitTarget(200); end; The problem is that the above code will just buy 1 contract and only execute the 1 profit target for that contract. How could I get 3 contracts with three different profit targets being bought? Would be great if anybody could help me.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.