How to Have Bot Buy/Sell When it Hits Tread lines in Picture
-
As you can see from the picture I am using below I want to be able for my bot to sell when the price hits the trend level created by the indicator and buy when it hits the support line created by the indicator. Is this possible and how should I go about creating it I am currently stumped? Thank you!
0_1554933541896_90143411-9919-420f-950e-1d45100f80ea-image.png -
@laneciar Hello, If the indicator has buffers, you can use them to trigger the buy and sell with crossover.
Import the mt4 to my indicators. Then, In the Condition block, you can use market properties, bid for sell, crosses below my indicators - indicator - buffer (the red one). Or you can use candle close.
I would say Crosses below because if it goes up, and up, it should not trigger. If it goes up, then down, trigger.
For buy, the other way around. -
Okay thank you so much I will look into this! Was giving me some problems early, thankful you could clear it up for me!
-
@laneciar Glad I was of help. I'm also quite a newbie, but learning.
At the top of all condition blocks, you could use a - No trade - block. That way, the underlying chain of blocks, triggers only if there is no trade. Also, you could give it a Break even block, tied to the else point (orange).
So... If no trade... then chain of blocks. Else, (meaning when trade) > BE function.