fxDreema

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

    Storing the risk taken on a pair's individual currencies as a variable?

    Questions & Answers
    1
    1
    5
    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.
    • G
      gaberen last edited by

      I'm currently working on a multi-symbol MT5 EA to help me backtest my algorithms. I want to store the risk of each currency from the fx pairs I trade to make sure that I don't risk too much on correlated symbols.

      Here is a snippet of my project:
      https://fxdreema.com/shared/yIfuGVLNc

      I'm currently trying to use Global Variables but it hasn't been working like I want it to. The way I have it right now, it only stores the risks of the 2 currencies from the pair selected in the strategy tester settings (see Pictures below). I want it to store the risks of all the currencies that the EA is trading.

      818587dd-a74f-4a09-9f5b-bb00ca1536d7-image.png
      4b39cb7d-0b05-4ce9-b5a9-eb7aa39a0d24-image.png

      I'm not really sure if Global Variables are the way to do it, does anyone have any better ideas?

      Thank you in advance!

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

      Online Users

      M
      F
      M
      H
      A
      P

      14
      Online

      146.7k
      Users

      22.4k
      Topics

      122.6k
      Posts

      Powered by NodeBB Forums | Contributors