thanks i will, i think i know why but is not really clear
Posts made by sosel
-
RE: position mismatch errorposted in Questions & Answers
-
RE: position mismatch errorposted in Questions & Answers
I found this in the code and this is the message that I'm seeing in the error but I don't get why this is happening, I have partial closes in my EA
@fxDreema can you please explain to us the meaning of this part of the code? or any idea why I'm getting this error?
-
position mismatch errorposted in Questions & Answers
I'm getting this error sometimes, anybody knows what is the meaning?

-
RE: EA is not working the same in backs testing and demo account in MT5posted in Questions & Answers
@l-andorrà i changed the program to MT4, is working as expected
-
RE: ANOTHER MT5 BUG?posted in Bug Reports
@ambrogio did you find a fix? I'm facing the same error/bug with "for each" or "pips away" block, when i open a trade it executes all the blocks inside of for each block instantly and don't take the pips away condition, i copied the blocks to a MT4 project and work without problem

-
RE: EA is not working the same in backs testing and demo account in MT5posted in Questions & Answers
I just did it but the result is the same, I'm thinking is a bug with "for each" or "pips away"or I don't know where, I copied the same blocks literally even has the same name in MT4 hehe and is working fine in MT4


-
RE: EA is not working the same in backs testing and demo account in MT5posted in Questions & Answers
@l-andorrà I modified it after this picture as the example in the other question, this is my last iteration, but still happening the same, can you please try to download and run it in the demo account, just open a trade with the button "comprar" instantly it opens the trade and close partially, seem like runs everything inside of the loop "for each", it doesn't take the pipis away block, it works in backtesting but no in demo, even I tried to break and skip the loop for next iteration with the block loop(next) attached to the yellow button of pipis away block to skip the trades that are not X pips away from open price but it didn't work

here is the link:
https://fxdreema.com/shared/8TxJzIIbb -
RE: close half positionposted in Questions & Answers
@l-andorrà sorry for the spam but this is exactly what I need to do, I try this same combination of blocks in demo account, and is happening the same, it execute the close partially even if the trades are not pips away, the EA does it automatically after opening a trade BUT only in demo account if i run it in backtesting worked as expected, can be this a bug? or do i missing something when i run it in demo account?

-
RE: EA is not working the same in backs testing and demo account in MT5posted in Questions & Answers
i modify the EA to this:

replacing BE block for modifying stops to only use block of the same type, but the problem is the same, once i open a trade it executes all the blocks inside of the loop and i want to stop the loop if the trade is not X pips away of the open price even i tried this to try to break the loop but didn't work :

-
RE: EA is not working the same in backs testing and demo account in MT5posted in Questions & Answers
sorry, i just saw the answer, I want to explain in more detail my problem I won't do it again, thanks so much I will try moving BE block, but is there a reason why it worked in backtesting and not in demo account?
-
EA is not working the same in backs testing and demo account in MT5posted in Questions & Answers
LINK OF PROJECT:
https://fxdreema.com/shared/g9hl8o6zdI have a basic EA that opens a trade with a button, can open multiple trades, the EA is checking each trade to see if it is X pips away from open price, if it is, put SL to BE, close partial 50% of the trades and it set a flag "parcial", with this flag another group of blocks is enabled that is checking if a condition is fulfilled and it closes all the trades that are in BE.
the problem is that in back testing is working as expected, if i open trades the logic starts to work till trade
is in X pips as "pips aways" block is requiring and close partial and do the BE, but same block, same logic in demo account once I open a trade it executes right away the BE and closes the trade

BACKTESTING:
it only opens the trade but it doesn't do the BE and the close


DEMO ACCOUNT:
you can see in the journal that open a trade in .04 and then close partial the 50%


-
RE: Backtest vs demoposted in Questions & Answers
I'm having the same problem with my EA and with almost the same blocks, did you manage to fix this problem? in backtesting works as expected but when I run the same EA in the demo it executes the blocks instantly after opening a trade instead of waiting till the position reach the 60 pips in "pips away" block

-
RE: how to work with the buttonsposted in Questions & Answers
I was getting an error about the syntax, i went to de documentation for MQL5 and the code is a little bit different, i used this, and is working well:
ObjectSetInteger(0,"buy",OBJPROP_STATE,false); -
RE: how to work with the buttonsposted in Questions & Answers
@cpbonzo is there an equivalent code for mq5? to do the same, reset the state of the button?
-
RE: BUTTON TEMPLATEposted in Tutorials by Users
@titangeorge where did you find the block "mouse clicked on object"? i couldn't found it, im on free demos for now, if i pay the full plan i will get more blocks?