Pending doenst work. I like some feedback!!
-
Hello everyone
Im trying to make a pending order EA. But there is some problem. it wont trade.
This is how i put it.

I have tried two things this one and i put "if trade buy/sell" on trade tab. But it doesnt work.
Expert advisor need to following things:
- it has to trade from 3:00 to 20:00
- In that day it need to trade once per trade. when the trade is finish it will trade again.
- buy or sell when the price is 100 pips higher or lower then the close

- when the price hit buy pending order. then sell pending order is going to delete. when it hit sell pending order its going to delete buy order.
Question
- If i use "time filter" does it still trade after 20:00? I mean does the order close when it take profit/trailing stop? or does it instant close the order at 20:00?
- if i put a pending order that sell or buy in a specific do i put it in a "slide order" box? or can input that in the offset in the "pending order"

feedback and/or criticism would be appriciatted
-
A few points to begin with.
-
Never put any trailing block that way. They are efficient only when separated from your 'launching' thread of blocks.
-
What do you exactly mean by 'Once per trade'? Haw can you require the block passes when there is no trade right now?
-
Could ypu please share your project (not a screenshot only)? More issues could be found.
-
-
@l-andorrà Thank you so much for replying
first of all this is the idea

Pending order is base on the Candle ID 1 (previous candle). I like to trade at 3:00 so its base on the closing price of candle at 2:00. the progress keep continue. after 20:00 it wont start a new pending. Its just finish with tp, trailing stop or stop lost.
This is the link:
https://fxdreema.com/shared/k48RKoJVWhat do you mean with: Never put any trailing block that way. They are efficient only when separated from your 'launching' thread of blocks.
-
- What I men is that you should do this:

- Another question. If I understand correctly, there can be just one buy and/or one sell at the same time. Right? Never two or more buys/sells altogether. Correct?
-
@l-andorrà I have tried "pass" box but it doesnt work. So I have removed "no trade" and "once per trade". Now it will trade.

But there is a new problem. Without "once per trade" it trade serveral the same order.

as you can see keeps deleting all other order while there is non pending.
perhapse i have do something wrong with the pips?

I have delete all custom value.
I tried on USD/JPY. when the price is 107.914. that means 0.001 is 1 pip
so example if the closing price is 1074.914 and tell them buy pending order is 100pips offset. that means it will buy at the price of 108.014. right ?
-
There something wrong with "once per trade" box. When i replace "time filter"box its works. But it still trade servaral orders at once, while I like to trade once per trade. I also want my ea to delete the buy pending order when it sell or when it sell to delete the buying pending order
Also this have some problem. It keeps deleting random order. This happens the whole time -
When you see the word "Trade", it means running order. While pending orders are these Stop or Limit orders who are waiting to be triggered and become "trades". I think you are mixing the blocks that are supposed to work with trades and pending orders in a way that is not correct for the trading logic. For now don't use "Once per trades", I don't think you need this one. I don't even remember me using this block

-
I don't recommed to use the trailing block that way. Your logic means that all pending orders depend on that moving stop. Is that whatyou really want. I strongly recommend you to move it out of that thread and create a new one:
First block: For each trade.
Second block: Trailing stop.On the other hand, the admin is right. What are you looking for? Buy/sell orders right now or pending orders for the near future?
-
I never though about this way. thank you guy i will try this
-
@l-andorrà Im a little confuse. the administrator said and i quote: When you see the word "Trade", it means running order. While pending orders are these Stop or Limit orders who are waiting to be triggered and become "trades" . So if i use for each trade that means it is trading right?
-
@setsuna said in Pending doenst work. I like some feedback!!:
@l-andorrà Im a little confuse. the administrator said and i quote: When you see the word "Trade", it means running order. While pending orders are these Stop or Limit orders who are waiting to be triggered and become "trades" . So if i use for each trade that means it is trading right?
'For each trade' is a block looking for all open trades right now, not pending orders. Trailing stop is only operative on open trades. This is why you need it. If you launch several pending orders, none of them will be an open oders until the price reaches the entry level. Then 'For each trade' will identify it and will apply the trailing stop rules on it.
-
@l-andorrà I like to trade at 3:00 - 20:00. If the close price of candle ID 1 is at 108.312 and I want to trade when the price is at 108.212. Can I use condition and sell now? or do i need pending order. Do I also need offset in pending order or slip order for that 100pips difference?
second
If i use pending order. Do I need put pending order above and the using for each trade and trailing stop below? -
Here you have the first part of your strategy.
https://fxdreema.com/shared/yBFnKbVVd
Would you try the closing part?

-
@l-andorrà I have made a new connection base on your project. modify variable doesnt work. I also figure it out that 1=10pips. I put 50points while its 500pips.
answer to your question: The closing part works. but its not very accurate. I set the trigger at 100pips but its activate at 95pips
-
Are you sure? It works fine in my MT4. That problem about pips can be fixed by adjusting the pip size rules.