Pips away from open price
-
Hello ,
Please help me to understand how it work, because it kills me:)))
I will try to formulate my question.I use "pips away from open price" to open many trades(1,2,3,4,5,6...). very important: all this positions are open.
and this block works perfect until I close last opened positions, after this event it began to work wrong. it seems the the original "open price" is changed somehow.Is this correct?
-
post here example what you mean - using blocks and shared link
-
shared/LFmWfRSwb

now you understand the problem?
-
-
problem can be, that you are using blocks from: Loop for Trades & Orders without previous selecting trades, that means, you are using block "pips away from open price" without block "For each Trade" ....
block For each trade need be used first for pre-selecting/filter trade, from which are calculated pips from open price using block "pips away from open price" ...
without this here can be situation, that you open price is changed ...
the same is with condition or formula block, where you use parameter "in loop trade order in loop" ... before this block you need select trade using block "For each trade" ... it is sometimes not easy ... -
I never used block "For each Trade"
Can you make a print screen and show me where I need to use this block?
Yes, it seems that after closing one trade, it somehow change the initial open price......
Also, I think all blocks need to have specification where users can read to understand how each blocks works....
Look,till I Just OPENING New Trades it keeps the same Open Price. everything is going correct until I close one trade.
So, I think/guess that this block was coded to change Open price when user change action from OPEN >>> close and Close >>>Open trade. -
if you never used block for each trade, it is time to start trying this block in smaller parts of EA and learn in tester what is your work doing ... go through all examples and tutorials (in my tutorials is also using For each trade as example, there are my replies how to use this block, check my replies on all questions, I am sure you can find here how to use this block :D) ...
-
Oh no, why so many connections in this project, such a mess

-
Hi fxDreema and miro1360,
after so many hours off trying to understand what is the problem/why it appears, my answer is: total confuse!!!!
this block(pips away from open price) keeps as reference point the opening price of first opened trade. from here and in continuation it keeps the same point for opening the next trades. This means that block works well!!!!
So, pay attention, my actions is opening new trades.
But, when I changed action from Open new trade into close trade, THE BLOCK gives an error.
WHAT MEANS THIS ERROR?
WHEN THE ACTUAL PRICE IS ZERO PIPS FROM OPEN PRICE(FIRST TRADE), THE BLOCK "SAYS" THAT ACTUAL PRICE IS 20 PIPS AWAY!!!!!!!!
ONCE AGAIN, IT HAPPENS WHEN I CLOSE ONE TRADE FROM ALL MY OPENED POSITIONS.!!!!!!!!!To be honest, I think that this block need to be detailed explained on forum.
and I think I will remove this block from my structure and start to build it in new way.or let's fix a skype conference to explain/show in real time.
-
for me, this block is working well when is connected with block "For each trade" ... block For each trade is working for pre-selected trade. When is trade selected, you can apply on this trade blocks with light-pink color (like your pips away from open price) ... but without preselecting trade using block For each trade - who know which trade is selected ...

-
Mine not working, I did for each trade the put the pips away from open price under the placed a sell now blow. but not working
-
This is old, start a new question, add a shared link and say what seems to not be working...