User lines on chart as filter

Avatar
  • updated
  • Completed

Let's discuss this idea.

Imagine you know the future (like Sai ;) and want to tell EA: "don't open BUYs under this level" or "open new BUYs only above this trend line".

How do you see it?

How it can be improved?

How would you rate the customer service you received?

Satisfaction mark by Andrey Khatimlianskyi 1 year ago

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

Duplicates 1
Adding a filter with prices as input

The idea is to trade small range bound identities or whenever currency is moving in range bound zone.

Say for example, NGUSD, we will buy in grid/martingale as long as it is between 2 to 6. and sell between 6 to 10. And close the trades when reaches certain global profit. May be we need to be careful when the entity reaches the boundary and needs refinement/study further/SL.

Simply we can disable trades as desired based on the current price and enable martingale. But it does not help the backtest feature.

Hence calls for requirement of the filter with input as prices i.e. buy between a & b and sell between x & y.

Avatar
0
dante tunica
Quote from Andrey Khatimlianskyi

Dante, you can add lines automatically... but how to use them? For opening, for closing, above or below the lines

I am looking for figures that give signals, but it is not easy to understand.

2021-01-31 09-52-01.mkv

Avatar
0
Andrey Khatimlianskyi
Quote from dante tunica

Find, I am also attaching my set to better see the trend lines.fractals-adjustable-period-trend-lines.mq4

Dante, you can add lines automatically... but how to use them? For opening, for closing, above or below the lines

Avatar
0
Andrey Khatimlianskyi
Quote from Sai Pratap

Hope it shall be applicable for opening the trade as well. It should open trade only when a candle closes above/below the trend line but not immediately.

Yep, it will

Avatar
0
dante tunica
Quote from Andrey Khatimlianskyi

1. Only mq4 and mq5 can be used.

2. Show your example of using please

Find, I am also attaching my set to better see the trend lines.fractals-adjustable-period-trend-lines.mq4

Avatar
0
Sai Pratap
Quote from Andrey Khatimlianskyi

Yep, one more parameter is needed — "use closed bars only".

Hope it shall be applicable for opening the trade as well. It should open trade only when a candle closes above/below the trend line but not immediately.

Avatar
0
Andrey Khatimlianskyi
Quote from Sai Pratap

Sir, in trendlines, can we have sl as close the trade when a candle closes below trend line in particular time frame?

Say for ex, if I draw trend based on 2 hrs, then I want to close the trade when a candle closes below in 2 hrs tf. I know that it would be risky such way compared to an absolute SL. But would like to know, if it is possible sir.

Yep, one more parameter is needed — "use closed bars only".

Avatar
2
Sai Pratap

Sir, in trendlines, can we have sl as close the trade when a candle closes below trend line in particular time frame?

Say for ex, if I draw trend based on 2 hrs, then I want to close the trade when a candle closes below in 2 hrs tf. I know that it would be risky such way compared to an absolute SL. But would like to know, if it is possible sir.

Avatar
1
Andrey Khatimlianskyi
  • Planned (collecting votes)
Quote from Rahman Jafarinejad

This is great, but pullbacks didn't considered on the images.

The trend line may be broken, but after a few candles,it broken again in the opposite direction.

Of course, it can move in any direction.

This is just an additional tool for manual traders.

Avatar
0
Andrey Khatimlianskyi
Quote from dante tunica

I don't think the CP 3040 set takes trendlines into account at the moment and it's very positive !!! However if you want to use dynamic trendlines I think what can be generated with fractals is very interesting. I enclose the indicator

fractals-adjustable-period-trend-lines.ex4

1. Only mq4 and mq5 can be used.

2. Show your example of using please

Avatar
0
Rahman Jafarinejad
Quote from Andrey Khatimlianskyi

Thanks for your replies, guys!

I think, we need following actions to be available in the EA:

  1. Allow new trades above/below the line
  2. Close all trades above/below the line
  3. Open new trade if price is near the line (waiting for retracement)
  4. Close all trade is price is near the line

Using combinations of these actions we will be able to automate any strategy:




We will be able to assign any action (or several actions) to each line.

Do you have something to add or fix?

This is great, but pullbacks didn't considered on the images.

The trend line may be broken, but after a few candles,it broken again in the opposite direction.