fxDreema

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

    Optional Exit Trade option as an Input Parameter

    Questions & Answers
    3
    5
    2007
    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.
    • C
      Cgammons01 last edited by

      Hello... I'm new here at the site and I'm having a good time learning how to use this awesome tool. So far, I'm doing alright. I'm trying to create a simple EA based on Bollinger Bands. I have a few questions and please see attached screenshot:

      1. If I want the EA to buy or Sell at the exact time the price breaks the upper or lower band, I would under a "Condition" block choose Candle High > Upper Band and Candle Low < Lower Band, correct?

      2. I'm going to use this strategy mainly with a TP for short scalp trades. But, I have setup an alternative exit trade rule. Is there any way I can add this rule as a True or False option under the input parameters? I have this setup as a 3 block rule on it's own: If Trade ~~> Condition ~~> Close Trades.

      3. At first, I was getting compiling errors when using the Constants tool but then I left the type as "Double" for all constants, everything was fine. Is there any place I can learn more about what to put in this "Type" field under "Constants"? I'm not quite understanding it... And yes, I did look at the examples and documentation but there is no explanation of what goes under "Type".

      Thanks in advance!

      **UPDATE:**I have figured out questions 1 and 2. Question 2 was done using Set Flag(true-false) and Check Flag(true-false). After looking through the forum, I have my answer to Question 3. When viewing the EA input parameters on MT4, how do I create just a comment/text field to separate the different input groups... Just want to make it look clean and descriptive? Is there a "Type" I can specify under Constant that will allow me to type letters under the "Value" field? ANSWER: Just use string as a type lol. Well, looks like I'm good to go after answering all my own questions!

      I'm using Google Chrome Browser.... I couldn't figure out how to get a full size picture to post here so if you right click on the image below and "Open in new tab".... On the new tab it gives the option to zoom in.

      ......
      BB Sniper.jpg

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

        1. You can see different ways for crossover here - https://fxdreema.com/examples/#Crossover If you use Condition, then you can combine it with Once per bar (probably 2 of them, one for buys and one for sells) to produce 1 crossover signal per candle.

        2. It's not very original, but people put a Constant vs Value->Numeric in Condition

        3. https://docs.mql4.com/basis/types But there are many data types and you will get confused. In general, string is the one that is most different, it is used for text (aka strings). All the others are numeric and similar. int is for whole numbers, double is for floating numbers, bool is for true/false (1/0).

        1 Reply Last reply Reply Quote 0
        • C
          Cgammons01 last edited by

          Yeah, I was reading some of that stuff.... It took me awhile but I have everything running fine 🙂

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

            __1. You can see different ways for crossover here - https://fxdreema.com/examples/#Crossover If you use Condition, then you can combine it with Once per bar (probably 2 of them, one for buys and one for sells) to produce 1 crossover signal per candle.

            1. It's not very original, but people put a Constant vs Value->Numeric in Condition

            2. https://docs.mql4.com/basis/types But there are many data types and you will get confused. In general, string is the one that is most different, it is used for text (aka strings). All the others are numeric and similar. int is for whole numbers, double is for floating numbers, bool is for true/false (1/0).[/quote:8obz58q3]

            3. Please how do I get to close a trade based on bollinger bands

            4. When i put buy now for example, I went to TP and chose custom price level, then chose indicator(bollinger-buffer_upperband)

            5. Is it proper?

            6. please how do I create my own post?

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

              Something like this, but if 6 is connected to 4 and 3 is NOT connected to 4. https://fxdreema.com/demo/mt4-wrong-closing-rule

              In "Buy now" all settings are for the moment. You can set SL or TP to any possible level, but that's all from this block, these are set once.

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

              Online Users

              K
              W
              S
              V

              8
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors