Custom indy: on line touch/on line cross signal mode

Avatar
  • updated
  • Completed

We need to open trade if the price touch the lines of support and resistance. Sell trades for resistance lines and buy trades for support lines.

How would you rate the customer service you received?

Satisfaction mark by Forex Trader 1 year ago

Add a comment about quality of support you received (optional):

Duplicates 1
Help With Custom Indicator "Plombiers"

Hello,

I try to use this Indicator: https://www.mql5.com/de/code/64

I has 5 buffers:

b0 Means (royal blue)
b1 Resistace

b2 Support
b3 Resistance2
b4 Support2

b5 Stochastic

I would like to open a buy on b2 and a sell on b1, but whatever I set up I get only a constant signal in one directon.

Image 5087


Here is a basic setfile. Please help.

Plom.set

    Avatar
    0
    Ulises Cune
    Quote from Forex Trader

    i want to open trades (first or martingale/Anti-martingale) when the prices touches the lines of support and resistance. 

    I imagine that when you say "touch" you mean that the current price of the current candle is > the resistance price, for example.

    Image 5118

    Avatar
    0
    Forex Trader
    Quote from Ulises Cune

    I imagine that when you say "touch" you mean that the current price of the current candle is > the resistance price, for example.

    Image 5118

    yes i mean if current price touch support or resistance line.

    Avatar
    0
    Forex Trader

    i tried your indicator and the ea don't open trades if the price touch or cross this indicator lines but open trades far from support and resistance lines. i think this indicator buffers is 1 for buy trades and 0 for sell trades.

    Avatar
    0
    Ulises Cune
    Quote from Forex Trader

    i tried your indicator and the ea don't open trades if the price touch or cross this indicator lines but open trades far from support and resistance lines. i think this indicator buffers is 1 for buy trades and 0 for sell trades.

    Could you send the .set file?

    Avatar
    1
    Jan Corsair
    Quote from Andrey Khatimlianskyi

    Do support and resistance lines switch position? I guess you need another mode..

    Yes you are right. The other mode I need is "On current price position" or "Price below sell or above buy buffer".

    Now it's only possible to work with values comming directly from the indicator itself. Please extend the modul to work also with current price.

    Edit: Just saw this: https://forum.communitypowerea.com/communities/1/topics/862-custom-indy-on-line-touchon-line-cross-signal-mode. Thats exactly what we need. :-)

    Avatar
    1

    I've merged topics.

    We also need "On current price position" mode

    Avatar
    0
    jay hu
    Quote from Andrey Khatimlianskyi

    I've merged topics.

    We also need "On current price position" mode

    Can we put pending orders? say put stop buy if the price broke the first level of resistance then put limit sell at the second and third level of resistance, same as pending sell orders and limit buy orders, stop sell orders put on the first level of support, if the price fall through it and broke this level, then buy limit orders put on the second level of support as well as the third level of support. What do you think, team?

    Avatar
    0
    Quote from jay hu

    Can we put pending orders? say put stop buy if the price broke the first level of resistance then put limit sell at the second and third level of resistance, same as pending sell orders and limit buy orders, stop sell orders put on the first level of support, if the price fall through it and broke this level, then buy limit orders put on the second level of support as well as the third level of support. What do you think, team?

    No, pendings are based on current price only at the moment.

    But you can enter by market if price crosses some level. Try it with Pivot filter, it already works