trend line
-
Hi guys how do I make a ea that trades to a trend line starting from a low for buy or high for sells and is it possible to have a support and resistance to become a trend line. The strategy is market brakes high or low with impulse, trend starts from support or resistance level and trade opens in the direction of market and closes 3 bars above or below the trend line. I have seen the post on here for trend lines but I don't know about inputting variables correctly still learning about boolean,double ect...
-
sorry i don't have a start to this project as I don't know the best way to start it I assume to identify trend direction would be best or support and resistance levels maybe. A 1 k support and resistance bot would be good also buy break above or sell below and levels only move 1 k pips after break
-
@gunji80 Before beginning such an ambitious project you should provide clear conditions to identify support and resistance levels. No Ea will do it for you. What conditions do you use to define a price as support or resistance?
-
@l-andorrà well the way I was thinking about doing the support and resistance is not true support and resistance from market price or highs and lows but having 2 horizontal trigger levels 1000 pips apart (top buy, bottom sell).

-
@gunji80 And should those 1000 pips apart prices be manually or automatically selected?
-
@l-andorrà automatically would be best and it would be in the form of take profit and stop loss but if market hits take profit ea start trade again in that direction and the same for stop loss
-
@gunji80 Ok. Then what rules shouls be applied to find those levels separated by 1000 pips. Would you use high/lows, pivot points or any other reference?
-
the prob i found with high lows is the market is not 1000 pips apart much so prob pivot point but i dont know anything about pivot point
-
it not matter weather the market is high or low just as long as the 2 levels are 1000 pips apart each trade
-
do you know the block configuration to make a buy when t/p is hit and a sell when a s/l is hit?
-
@gunji80 Yes, you ned to do this on the 'on trade' tab:

-
@l-andorrà do you know the block combination to buy at t/p and sell at s/l?
-
@gunji80 There is not such block. You will need to create variables to store that information.
-
@l-andorrà there is no such block that is true but i figured out that the condition must be in a buy or sell condition when it hit tp or sl to keep trade in that direction as in candle close id 0 >< candle close id 1. I created this post as I wanted to learn how to get a ea to trade to a trend line as I can not get draw line or draw arrow to work. can you create a simple draw line from 1 low to another low so I can see how that is done
-
@gunji80 You can draw a trend line with the 'Draw line' block. You need to select 'trend line' option within it.
-
@l-andorrà i have tried this multiple time and it never work i try simple draw line strategy from market low 0 to market low 1 and it not work also the no trade block has error also so I have uploaded issue with evidence.
-
@gunji80 This is an easy exmple in with the EA will draw a trend line connecting candles ID 10's low with candle is 0's low. Sadly fxDreema cannot draw extended lines:
-
Yes it can ... Look at roar line tutorial.......
https://fxdreema.com/forum/topic/9146/a-line-tool/2 -
@alphaomega Techically, ot os not extending the line but drawing points. Not sure the effect is the same.