Trailing stop, Once the high is taken out stop to trail below most recent swing low.
-
https://www.tradingview.com/x/A2SpA0cd/
Im trying to figure out how to formulate once the high is taken out stop will be place below most recent swing low.
Ive tried with market properties high candles period, but if it ranged for example 30 bars between the high and low before new highs are take out, the data isn't true to what i want it to do, i have an example above so there maybe 30 candles between the high and low or a little as 5 as it coils for a possible reversal i want to be able to milk possible profits that way, what would be the best way to manufacture this?
-
@hoop You will need variables for sure. The real difficulty is defining what a swing low is. You and me can see it very easily on the chart, but the EA needs precise conditions to be met to do it. What are those in your case?
-
Im sorry, are you asking me or is that a question?
These are some rules that i have made im not sure if thats what youre talking about?
If price is moving short, and all candle lows are breaking eachother, but you have 1 candle that doesnt break the low then the trend continues down to me that would be classed as a swing low, and would like the new low to be counted and the stop to be placed above the newly created swing highhttps://www.tradingview.com/x/YepS5Qxz/
https://www.tradingview.com/x/7C6r4pq6/ -
@hoop Then if I understand it correctly you are defining fractals. Are fractals defining highs and lows as you need in your strategy?
-
I don't believe so, just observation of candles lows and highs, but how do you code without using the function "Candle ID" and just "previous time x happened"
for example Last time Candle low was higher then previous candle, eg a swing. but without having to identify the actual count it happens.
Did you have time to observe the links i posted, literally just trailing stop behind structure.
-
@hoop If you need to check those swings as soon as they appear on the chart you can use candle ID normally. I can't see the problems. However, if you need to look for those swings beyond candle ID 1 or 2 then the only option is using a loop.
-
Ok, also im trying to use Market properties.
Left side
Candle Close ID1
x<
right side
lowest price candles period 1-40Sell
fixed Stop
fixed Profit targetBut it wont execute trades, whats wrong with that block, it makes sense to me?
when price crosses below candle period sell. -
@hoop Can you please share the latest version of the EA?