fxDreema

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

    Posts made by maurysvva

    • RE: once per bar, working on open or close of a candle

      Perfect, thank you.

      About synchronization: I was wondering if there's the possibility of a mismatch between candle in the graph or candle in backtesting and candle calculation by the EA (due to different clock time or other reasons...) I say this because I saw strange things in my backtest...

      posted in Questions & Answers
      M
      maurysvva
    • RE: open and close trade at specific time

      Your request it's similar to my topic ("once per bar, working on open or close of a candle").
      You can't set a pending order in the high of the current bar on a specific time, because you don't know the current high price, the price could rise again. it's also impossible to backtest a similar EA...the high price is that when the candle is completed. Conversely it's possible to set a pending order at the high of the previous candle (candle ID:1).
      I suggest you to use "once per bar"...waiting to the confirmation in my topic...

      posted in Questions & Answers
      M
      maurysvva
    • RE: once per bar, working on open or close of a candle

      So if i understand in this simple case:

      Once per bar (first block) --> condition ---> do something

      If condition is met in the second "zero of a candle" my EA "do something" in the open price of a candle
      In case of condition met in the second 20 of a bar my EA "do nothing" because "once per bar" passes only 1 time in the beginning of candle
      Right ?

      What about synchronization of candles in real and in backtesting ?

      posted in Questions & Answers
      M
      maurysvva
    • RE: take profit %

      You can setup a Formula: Open price x 0,05. Be careful to set up correctly pips or digits.

      posted in Questions & Answers
      M
      maurysvva
    • RE: once per bar, working on open or close of a candle

      Hi,
      I'm working at a new EA in a short time frames (m5-m10), I put "once per bar" at the top of my flow, because I need to pass only at the beginning of a candle (EA should work only on open price, at the second 00 of a minute and on the rest of time do nothing) There are obviously other conditions below "once per bar" block.
      The question is: If conditions below "once per bar" are met after the second "zero" of a candle, does the EA pass when the condition are met or not ?
      I need to work only at the beginning (or on the end) of a candle and do nothing on the rest of the time because open and close price are well known and they are good for backtesting.
      For the moment i have results in the MT5 backtesting that don't match at all in a real situation. My theory is: if i write a flow that works only in O-C (open or close prices) a simulation in OHLC should be perfect (apart slippage). I don't know if there's a real synchronization of candle in backtesting.
      Thanks.

      posted in Questions & Answers
      M
      maurysvva
    • RE: check loss of last 24 H

      Thanks!
      Some good example of blocks that I didn't know well (modify variables and loop break)

      posted in Questions & Answers
      M
      maurysvva
    • RE: check loss of last 24 H

      Hi,
      I'm trying to set up a rule but I'm not confident what i'm doing 😄
      I need to check losses in the last 24 hours and pass the next block only if losses are less than a balance % value
      I know, probably it is needed "For each closed Position", "check age" blocks, but how to connect ?
      I was thinking that "for each position" loads a number of closed positions, but actually it would be requested to load only the necessary positions for age...the number of positions is not well know...

      Thanks,

      Maurizio.

      posted in Questions & Answers
      M
      maurysvva
    • RE: Pass N times

      Here the correct flow to pass n times using also once per bar block

      No pending orders-->once per bar--->pass n times--->buy pending order
      If no positions is running--->reset counter

      Set the correct counter ID!

      If you put pass n times before once per bar it doesn't work.

      I hope it'll be helpful.

      posted in Questions & Answers
      M
      maurysvva
    • RE: Pass N times

      Right!
      I written a quite complicated 45 blocks expert advisor, it's nice and it works well, I thought that the counter and the relative reset block was the most simple in my flow but it isn't for me 😄
      Me too I think that there's all necessary, but for the moment i can't connect blocks in the right way.
      I tried to simplified in my post because the rest of the flow is not important.
      However in the real would be:

      No pending orders-->pass 3 times-->once per bar-->buy pending order

      If no positions is running-->reset counter

      It seems it doesn't work in MT5 but I will try again in the next day and I'll report here.

      posted in Questions & Answers
      M
      maurysvva
    • RE: Pass N times

      You are in continuous development on request! thank you.

      I tried the new block but it seems in mt5 doesn't work properly, or maybe is not what i was thinking.
      All the three examples generate 3 buy operations in the same candle...

      Also the new "once per bar" block generates 3 operations in the same candle.

      About the last one (once per bar with n max to pass) how to reset the "n" Max times to pass ?

      What I needed was:

      If there's a position running, buy only once per candle and maximum 3 times in absolute.
      When there's no positions start again the program (reset "n" max times to pass)

      Thank you,

      Maurizio.

      posted in Questions & Answers
      M
      maurysvva
    • RE: Pass N times

      I'm trying, but it doesn't work, for now....."Counter pass n times" after "once per bar" or... before ?
      could you suggest me how to connect two more once per bar blocks with the yellow outputs ?

      posted in Questions & Answers
      M
      maurysvva
    • RE: Pass N times

      I'm not probably very good at using loop blocks... now I need to pass 3 times into a flow, then stop to pass if there's a position running (MT5).

      here the flow:

      No pending orders-->conditions-->once per bar--->BUY/SELL

      I need to pass this flow 3 times (once per bar) and then stop it until the positions created by the flow (one, because MT5 adds each position of the same type) are closed.

      Example: (conditions met)
      first minute: 1 lots buy
      second minute: 1 lot buy
      third minute 1 lot buy

      Now I have 3 lots in the same positions, the program have to stop buying until the 3 lots are closed.

      Thanks 🙂

      P.S. I tried pass Loop(pass "n" times) and the reset block without success!

      posted in Questions & Answers
      M
      maurysvva
    • RE: Check consecutive losses

      Thank you fxdreema!

      In metaeditor i have 1 warning: possible loss of data due to type conversion, however I'm trying the flow.

      posted in Questions & Answers
      M
      maurysvva
    • RE: Check consecutive losses

      Hi everyone,

      I need to put this block (check consecutive losses) in my flow, but I can't find the right way...
      My flow is more or less this one:

      No position/order exists-->condition--->Buy/Sell block

      Now I would take this result: do not buy or sell for 5 minutes only if there were 2 consecutive losses. After 5 minutes from the last loss, reset the "check consecutive losses" block and begin a new flow.

      Is there any suggestions?

      Thanks.

      posted in Questions & Answers
      M
      maurysvva
    • RE: guidelines for new users...trailing stops

      I understood something about the problem...

      The trailing stop starts from the open price and not the opposite bid/ask...

      One example: in a BUY OPERATION the buying price is ASK but the Sell price is BID when the trailing stop starts it considers only the ASK price !

      Is there a way to use the opposite referral price ?

      In a BUY operation the referral price for trailing is BID
      In a Sell operation the referral price for trailing is ASK

      Maurizio.

      posted in Questions & Answers
      M
      maurysvva
    • RE: guidelines for new users...trailing stops

      Hello everyone, I'm new...

      I think it would be helpful to have some base points, to clarify in the use of fxDreema for beginners:

      • orange, yellow and white connections (how and when), how many connections from each one...
      • How realize connections between different colors blocks (which allowed and which not...);
      • point format rules (how I have to change this parameters for USDJPY against EURUSD for example).

      Moreover I struggled for hours with this issue:

      I have a 5 digits broker so 1 pips (5 digits) is 0,1 pips (on 4 digit), MT5 allows to set a trailing stop from 0 pips EURUSD, it means that when the position goes on profit MT5 starts trailing the stop loss up or down immediately with 1 pips step (5 digits) stop loss. This is a common scalping strategy. I can't set properly this parameter in the trailing stop block on fxDreema.

      I put in attachment one image to well identify the problem. ( I spent many hours to try and to understand with no results! ) Note that the trailing stop pips remain 4 digits also changing the point format (this is normal in MT5)

      ......
      trailing stop block.png

      posted in Questions & Answers
      M
      maurysvva
    • 1 / 1