fxDreema

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

    Lot size based on stored stoploss value?

    Questions & Answers
    2
    2
    50
    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.
    • R
      Razzamattaz last edited by

      Hi All,

      I’m wondering if this program can solve an issue for me. Basically I want my bot to set the stop loss as the most recent fractal +/- ATR. Once it’s worked that out, calculate the lot size by calculating the number of pips to SL and then setting the risk to 2% of balance. Assuming that’s possible I take it setting take profit at 1.5x risk would be fairly simple.

      I don’t need step by step instructions (although I wouldn’t mind). I’d just like to know if it’s a function that’s doable before I go down the rabbit hole.

      Thanks.

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

        The options for this are in the standard blocks (I think), for a start set sl to fractal, save atr to a variable, these are a price fraction, add to your sl using adjust, try and if not working add a shared link.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

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

        Online Users

        H

        6
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors