Adding close condition to my buy and sell conditions
-
Hi fxDreema please I have been working on this simple EA and when I got to the concluding part I can't put it together, this is the condition.
For buy order to happen PSR will be below the candle and CCI valve will be from 120 and above
For sell order to happen PSR will be above the candle and CCI valve will be from -120 and below
This I was able to do without stress.
But when I want to add my close trade condition is when I now have my challenge
My close conditions are
For a buy order, if there is a buy order and the CCI valve is equal -100 close trade
For a sell order, if there is a sell order and the CCI valve is equal 100 close trade
My close condition will not work when I add it to my buy and sell conditions at the second condition of when CCI is above or below 120 and -120 respectively
Please help, thank you. -
@bayojoseph42 hi. please share your project.
i can check your blocks -
@xfire please help me with how to do the share, thanks
-
@bayojoseph42
in the menu "Project > create a shared copy" and click to link and copy from the address bar -
@xfire https://fxdreema.com/builder
That is it thanks -
@bayojoseph42 No. your link is incorrect to the base page.
you should create by this menu "Project > create a shared copy"
-
-
should be working
-
@xfire OK thanks but please taking a look at the close condition I hope or better put
How will the condition to stop buy order which is if there is a buy order and CCI is equal -100 will happen and vice vasa sell order from the close trade conditions, thanks -
you should put 1 for all candle ID in the conditions blocks
and Justin case up " => , <=" for close conditions -
@xfire if I do the following my close trade condition will work just fine, is that right?
-
@bayojoseph42 yes, your logic is correct but when you run EA on the demo account you find more issue take profit and you need to add more blocks for control few styles
-
@xfire thank you so much for your assistance, if I may ask what are your suggestions in that regard
-
@bayojoseph42 really before test i don't know what happens for your strategy. just test it and if you need help asking in the forum. your welcome
-
@xfire also please my money management there is a small issues about it too
I want my lot size to be 1% of my balance thanks -
@xfire you made my day I will find out how it works on the strategy test and get back to you, best regards
-
@bayojoseph42 No worries man . you are welcome
the example just to buy
-
@Xfire
Hi fxDreema is there any block that can refer to a buy order or a sell order in trade of both buy order and sell order.
For example:
I want to refer the buy order in a trade so I need a statement like
If the trade is a buy order and CCI value below or equal to -100 then close trade.
Thank you -
@bayojoseph42 "Filter by type" part in all trade blocks . just open this part
-
@xfire sorry where do I find the filter by type?
