fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Mitchp
    3. Posts
    M
    • Profile
    • Following 0
    • Followers 1
    • Topics 10
    • Posts 53
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Mitchp

    • RE: Why does this script sometimes open positions with MAX lot size?

      @l-andorrà That was for a previous version where I used limit order. I wanted limit order 0.25ATR under the open of the candle.

      posted in Questions & Answers
      M
      Mitchp
    • RE: Why does this script sometimes open positions with MAX lot size?

      @DragonZueloTrends No no, it isn't martingale. Risk should be consistent (0.25% in this example)

      I'm not able to re-produce the issue either, it just happens sometimes.

      The risk is suppose to be consistently 0.25%, the stop-loss is calculated based on volatility using the average true range indicator. The multiplier is to calculate stop-loss position, not risk.

      posted in Questions & Answers
      M
      Mitchp
    • Why does this script sometimes open positions with MAX lot size?

      https://fxdreema.com/shared/pmD96sI2d

      This script works fine most of the time. Sometimes however it ignores the risk settings and just opens a position with the max allowed lot size with the broker.

      I've already lost quite a bit of money through this bug, since it just opened 40 lots instead of around 0.2.

      Anyone know why this is happening?

      The script is suppose to open a trade with the correct risk %, SL and TP (based on ATR and RR).

      posted in Questions & Answers
      M
      Mitchp
    • RE: Sells not working, need help.

      I got it to work. I just referred to the lines in the condition block instead of market price.

      Even though it works now, I still don't understand why it worked for longs but not for sells.

      posted in Questions & Answers
      M
      Mitchp
    • RE: Sells not working, need help.

      @jstap https://fxdreema.com/shared/N37zK7q6d

      The line gets drawn correctly.

      posted in Questions & Answers
      M
      Mitchp
    • RE: how i can close first trade when third trade opened

      Maybe you can use loop.

      "For each position"

      Loop direction: Oldest to newest
      Not more than "n" trades: 1

      Then link it to a "Close positions" block.

      Put the loop after your Buy and Sell block, then every time a position is opened it should theoretically close the oldest position.

      And since you want it separate for buys and sells, you create 2 of these identical loops and connect one to Buy block and one to Sell block. Also filter each loop by type for Buys or Sells.

      I hope this works for you.

      posted in Questions & Answers
      M
      Mitchp
    • Sells not working, need help.

      https://fxdreema.com/shared/mO4db2YGc

      "N" day breakout strategy. Buy when we get above the high of "N" days (and close out sells), and sell when we get below the low of "N" days (and close out longs).

      For some reason, it does not detect the "N" day low.

      I added a log message to it, to identify the problem. It does not print the message (it does for the high), indicating the problem is within the condition block. I don't understand, since the long trades do work and it's just the exact opposite.

      In it's current state it takes one long trade and holds it forever.

      posted in Questions & Answers
      M
      Mitchp
    • RE: For each object bug (MT5 only, works fine in MT4)

      @l-andorrà This one isn't a question. It is a bug report?

      posted in Bug Reports
      M
      Mitchp
    • RE: Need drawing to disappear once price went through it.

      @l-andorrà I created a bug report and tagged admin.

      posted in Questions & Answers
      M
      Mitchp
    • RE: Need drawing to disappear once price went through it.

      @JayPhillbrooks Nope, no variables

      posted in Questions & Answers
      M
      Mitchp
    • RE: For each object bug (MT5 only, works fine in MT4)

      Link to first topic:

      https://fxdreema.com/forum/topic/19299/need-drawing-to-disappear-once-price-went-through-it/7?_=1705913401211

      posted in Bug Reports
      M
      Mitchp
    • For each object bug (MT5 only, works fine in MT4)

      https://fxdreema.com/shared/seDr5Wkab

      f9436802-2595-46df-9cbb-e832b433add9-image.png

      Gives this error for MT5, compiles fine in MT4.

      @fxDreema

      posted in Bug Reports
      M
      Mitchp
    • RE: Need drawing to disappear once price went through it.

      Seems to only be an issue for MT5, compiles fine in MT4.

      I think I'll make a bug report for it.

      posted in Questions & Answers
      M
      Mitchp
    • RE: Need drawing to disappear once price went through it.

      @JayPhillbrooks Thanks for your help. I am having an issue with it though.

      bb667e81-ba03-470d-a35d-a1cb6956bdbf-image.png

      I get this error for some reason.

      https://fxdreema.com/shared/seDr5Wkab

      posted in Questions & Answers
      M
      Mitchp
    • RE: Need drawing to disappear once price went through it.

      @JayPhillbrooks Never used loops before, but I'll give it a shot. Thanks!

      posted in Questions & Answers
      M
      Mitchp
    • RE: Need drawing to disappear once price went through it.

      @jstap That works when using one drawing.

      I don't think it's as simple as that in my case.

      There might be 15 of the same drawing on the chart, at different price levels. Only the ones that are priced through need to disappear.

      posted in Questions & Answers
      M
      Mitchp
    • Need drawing to disappear once price went through it.

      https://fxdreema.com/shared/lXUBANQPd

      These are 5 bar fractals.

      I need each individual drawing to disappear once price goes beyond it.

      I know how to do that when it's only 1 drawing, but not in this manner with loads of drawings with the same prefix.

      There can be 10 drawings with the same prefix, but only the ones that have already been broken should be deleted.

      Thanks in advance for your help.

      posted in Questions & Answers
      M
      Mitchp
    • RE: Importing indicator, then using it as a specific condition.

      @l-andorrà Yes, I only need those. But can't get them to work for some reason.

      posted in Questions & Answers
      M
      Mitchp
    • RE: Importing indicator, then using it as a specific condition.

      @l-andorrà It's the whole project as of now, just to test the functionality of the Keltner channel.

      357c1aec-6485-4468-a7ab-31f4fec5ee39-image.png

      Should be correct.

      posted in Questions & Answers
      M
      Mitchp
    • RE: Importing indicator, then using it as a specific condition.

      https://fxdreema.com/shared/LTwMmKoQc

      Yeah so now it is just taking trades at random with a complete disregard for the keltner bands.

      It is always in a position, so if a position is closed it just opens another one instantly (randomly buy or sell) even if it's inside the bands.

      posted in Questions & Answers
      M
      Mitchp
    • 1
    • 2
    • 3
    • 1 / 3