Hello traders. I am kinda new with forex. Still studying baby pips and have watched some YT. I tried backtesting GBPUSD with a plan I come up with which I though not really that promising because of some flaw in it. I am backtesting with 200 USD just to make sure that the system works, and when I start with a live account I can re-create the plan with 200 USD and start compounding. This is my plan for now:
1 hr chart
ATR 14, for SL and lot size
2% risk per trade
2 trade (1 with 1:1 RR, 1 w/o TP but close when Aroon crossed)
Let the trade (1:1 RR) run until it hits SL or TP
If the trade (1:1 RR) hit TP, the trade w/o tp should close on the next Aroon cross
I'll preface this with I have done OOP all my professional and amateur career (save for the one semester of BASIC I took in high school) and I'm still having issues understanding macros and the best way to use them. That said, I'm writing a library to use for technical analysis on stocks/forex/futures/etc and am getting to the Aroon indicator. Basically the calculation is the same except for looking for a high for one part and then the low for the other part. Below is my naive first pass at solving the problem:
def aroon_up(prices) do number_of_periods = prices |> Enum.count corrected_prices = prices |> Enum.reverse high_period = calc_high(prices, 0, 0) (number_of_periods - high_period) / (number_of_periods * 100) end defp calc_high(prices, high, count) do case prices do [hd | tl] when hd > high -> calc_high(tl, hd, count + 1) [hd | tl] -> calc_high(tl, high, count + 1) [hd] when hd > high -> count _ -> count end end def aroon_down(prices) do number_of_periods = prices |> Enum.count corrected_prices = prices |> Enum.reverse low_period = calc_low(prices, nil, 0) (number_of_periods - low_period) / (number_of_periods * 100) end defp calc_low(prices, low, count) do case prices do [hd | tl] when low == nil -> calc_low(tl, hd, count + 1) [hd | tl] when hd < low -> calc_low(tl, hd, count + 1) [hd | tl] -> calc_low(tl, low, count + 1) [hd] when low == nil -> count [hd] when hd < low -> count _ -> count end end
You'll notice there is a lot of repeating code. I'd love to be able to generate the base of the code from a macro but I'm stumped on how to do this without basically writing a bunch of case statements. Is this a valid use case for macros here or am I just over thinking the problem?
The Aroon’s Formula. Unlike moving average systems which use real price changes, the Aroon uses the time differences of the last high and last low as its basis.. This means the detector reacts when the price is consistently making new highs or new lows. This makes it a very useful system for momentum trading. The Aroon indicator was d eveloped by Tushar Chande in 1995, and is an indicator based trading system that determines whether a trading instrument is trending or not and how strong the trend is.As conceived by the creator, Aroon had to determine points for entering trades before other indicators and inform traders about this. Forex Aroon Indicator. Forex Aroon Indicator is great for reading trends, watch as the “Up Line” (Default color:Yellow) reaches 100 means a strong up trend, and watch for the “Down Line” (Default color:Dodger Blue) reaches 100 means a strong down trend. AROON Indicator watchs also as they crosses each other. It’s great for signaling. Aroon indicator is an unusual indicator that can help you spot the strength of a trend and ride that trend until a buy or sell climax is reached. We like how versatile the Aroon Up and down indicator is. The triangular Aroon oscillator lines make it so much easier for the untrained eye to spot buy and sell signals. The Aroon indicator indicates if a price is trending or is in a trading range and reveals the beginning of a new trend, its strength and can help anticipate changes from trading ranges to trends. AroonDown and the AroonUp indicators are used together called the Aroon indicator.
Forex Trading Strategy With Aroon Indicator very ...
Hi Guys this is a new strategy I found and it works great. This is not an investment advice and this video is only to impact on your knowledge. Please try fi... This lesson describes the Aroon indicator, and three chart examples are used to show how it works.. Learn to trade Like a Pro - Join the StockGoodies Communi... Aroon roughly translates to "Dawn's Early Light," which tells you everything you need to know about the purpose of this indicator. Learn why it was created and how it can function in your trading ... Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube. This Aroon indicator trading strategy for forex, stocks and e-minis contradicts traditional teachings, but can get you better results. http://www.topdogtradi...