fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Updating Risk amount

    Questions & Answers
    2
    3
    488
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JDD last edited by

      Hi,

      I am trying to program my EA as to increase the risk by 1% after a trade hits it's take profit level. I am trying to do this by incrementing a variable 'RISK' by ++1 each time a trade is closed on TP. Once Risk == 5%, the variable is to change back to 1%. If a SL is hit, the variable should be 1%.
      No matter how I seem to attempt to program it, I can not seem to modify the value of variable 'RISK' in order for it to change the volume size when I am backtesting.

      Attached is a screen shot of my latest attempt. Could you kindly have a look and advise me where I am going wrong? This screen shot is taken on the 'ON TRADE' screen.
      Thanks for your help.

      ......
      Capture.PNG

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        "Formula" #26 now works like this: Result26 = RISK + 1

        But I'm pretty sure that you don't need a global variable named "Result26". Try with "RISK" instead.

        1 Reply Last reply Reply Quote 0
        • J
          JDD last edited by

          Perfect, thanks

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          V

          15
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors