fxDreema

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

    swap value

    Questions & Answers
    2
    2
    453
    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.
    • E
      edmundtan last edited by edmundtan

      i am trying to automate closing order if breakeven including the swap incurred.

      how do i get the swap value?

      1 Reply Last reply Reply Quote 0
      • V
        vnpython 0 last edited by

        use custom mql code:
        vSwapSell=NormalizeDouble(MarketInfo(Symbol(),MODE_SWAPSHORT),3);
        vSwapBuy=NormalizeDouble(MarketInfo(Symbol(),MODE_SWAPLONG),3);
        then out put to where you want them to

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

        Online Users

        J
        M
        G
        J

        13
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors