fxDreema

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

    maurysvva

    @maurysvva

    0
    Reputation
    201
    Profile views
    16
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    maurysvva Unfollow Follow

    Latest 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