fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. bk7
    3. Posts
    • Profile
    • Following 0
    • Followers 8
    • Topics 13
    • Posts 252
    • Best 25
    • Controversial 6
    • Groups 0

    Posts made by bk7

    • RE: What am I missing with ENUM variables for MT5?

      @l-andorrĂ 

      https://fxdreema.com/shared/zaBjNSJ2c

      this should work

      posted in Questions & Answers
      bk7
      bk7
    • RE: How can I find the average opening price for the last two positions?

      @khalids222
      for me there are open questions:
      how many open buy positions you have max ?
      exceeds, means avg of 2 positions is below current price, if you have more positions you take any positions or is there a rule?
      ist just price a factor or volume as well?
      you take swaps/commissions into account or just price ?

      posted in Questions & Answers
      bk7
      bk7
    • RE: How can I find the average opening price for the last two positions?

      @khalids222
      i just read about the price, which closure logic you want to apply?

      posted in Questions & Answers
      bk7
      bk7
    • RE: How can I find the average opening price for the last two positions?

      @khalids222

      here this should work for the buy side:

      https://fxdreema.com/shared/3bPGBaSWc

      posted in Questions & Answers
      bk7
      bk7
    • RE: Close pending order before midnight and Reopen it after Midnight

      @didymario7
      i just reread the whole task and i saw it is about pending orders so the solution is even a bit easier. I recommend that you move the order away by a certain number of pips before 23:30 and move it back at a certain time like 00:25 or whichever time you choose. I recommend using a timespan and run once (23:25-23:30) because if there are no ticks at a certain time it can't run. You can also make it run at a fixed time (23:30) if that is super important for you.

      here is a sample for buys:

      https://fxdreema.com/shared/DvuUnzpFd

      posted in Questions & Answers
      bk7
      bk7
    • RE: Multichart Backtest

      @tipsywisdom

      you can try
      on init
      a custom block with:

      ChartOpen(
      string symbol, // Symbolname
      ENUM_TIMEFRAMES period // Period
      );

      posted in Questions & Answers
      bk7
      bk7
    • RE: Close pending order before midnight and Reopen it after Midnight

      @didymario7 the next 2 days i am super busy and hardly have time, if nobody helped you by then please send me a quick reminder in 3 days, if i forgot to make a quick draft

      posted in Questions & Answers
      bk7
      bk7
    • RE: How can I find the average opening price for the last two positions?

      @khalids222 oh sry to read this.. the next 2 days i am super busy so if forget about it please send a reminder in 3 days if nobody else helped you by then.

      posted in Questions & Answers
      bk7
      bk7
    • RE: Close pending order before midnight and Reopen it after Midnight

      @didymario7

      or simply check at a certain time like 23:30 which open order you have
      in a first step increase the sl (double)
      second step open counter positions with a group id
      third step at 01:00 for example close the counter orders (close all with selected group id)
      fourth step return the sl to the original value

      posted in Questions & Answers
      bk7
      bk7
    • RE: How to stop martingale EA from placing too many trades

      @ideal
      implement a time filter or specify the min distance from last to next trade, which is might the better solution

      posted in Questions & Answers
      bk7
      bk7
    • RE: 98% WIN rate - Looking for expert to partner with.

      @seb-0 @Cashflows

      the question is what happens in the time you not win (2%) and if you have a win ratio of 98% but your average gain is 1 and the average loss is 100 you still have a big problem!

      posted in Questions & Answers
      bk7
      bk7
    • RE: PARTIAL CLOSE

      @kestra

      you DONT HAVE TO WRITE ALL IN CAPITAL LETTERS...

      you can check the full code in your mq4/mq5 file and adjust the rulset to your needs, so there are no limits!

      posted in Questions & Answers
      bk7
      bk7
    • RE: PARTIAL CLOSE

      @kestra

      if it works that way, you have solved all your issues on your own, great!

      posted in Questions & Answers
      bk7
      bk7
    • RE: Multichart Backtest

      @tipsywisdom
      via custom code or by default with fxdreema?

      posted in Questions & Answers
      bk7
      bk7
    • RE: PARTIAL CLOSE

      @kestra

      better not use pips/points if you are not able to work with it.
      I suggest you set/calculate the price levels for each trade you want to take volume out, or add volume to it limit each level to 1 once per trade. this would be the safest and probably also the easiest way...
      The sizing of the trades you can choose as a multiple of what you take out and you can avoid this problem by default.

      posted in Questions & Answers
      bk7
      bk7
    • RE: custom indicator ...please help ......

      @harshalr5556

      simply make a variable for each buffer, and then check which variable has no empty value (the other things look just super strange to me and many loose blocks)

      posted in Questions & Answers
      bk7
      bk7
    • RE: How can I find the average opening price for the last two positions?

      @khalids222

      so you still need the average price of the last 2 openend positions?

      do you need this for all orders no matter buy or sell, or 1 avg for buys and 1 for sells?

      posted in Questions & Answers
      bk7
      bk7
    • RE: Create a pending every new trade at fixed distance

      @meshii

      @TipsyWisdom meant that brokers dont like to get that much orders within short period of time, so they slow your order execution by some seconds which gives you slippages on open and close (or lets say the brokers lp).

      the solution should work, just check that the min distance of pending orders isnt bigger, otherwise you can open market orders if the price is matched...

      posted in Questions & Answers
      bk7
      bk7
    • RE: How to repeat a BOX every day ?

      @ryuzaky

      from a quick check i see more lines than in your shared link..
      how you make the calculation for the lines and whats the drawing trigger

      posted in Questions & Answers
      bk7
      bk7
    • RE: How can I find the average opening price for the last two positions?

      @jstap

      or a loop of last 2 trades, sum the 2 prices and divide by 2

      would be a quick solution, that works

      posted in Questions & Answers
      bk7
      bk7
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 12
    • 13
    • 4 / 13