BacktestRookies

Babypips: Inside Bar Momentum Strategy

The strategy contained in this post comes courtesy of babypips (.com), an excellent resource for all thing forex related. If you are new to trading, the site is definitely worth checking out!

Code commentary and an introduction to Inside Bars are available for this post on the Backtest-Rookies (.com) website.

Note: If you are interested in custom development services, please check out our services page on the Backtest-Rookies site.

Strategy Overview

Inside Bar Momentum Strategy.

  • Inside Bar Detection
  • Position sizing based on stoploss distance (Note: Based on equity and assumes that the account currency is the counter currency.
  • Stop buys for entries
  • Takeprofit / Stoplosses for exits
  • Control Stopbuy, Takeprofit and Stoploss targets with inputs
  • Control Backtest start/end dates
Usuń z Ulubionych Skryptów Dodaj do Ulubionych Skryptów

Komentarze

can this execute trades on your behalf?
+4 Odpowiedz
good job!but how to change it to indicator and add alert?
+1 Odpowiedz
@koolaysun, change "strategy" to "study" in row7. And add use the function alertcondition for alerts.
+1 Odpowiedz
Blitz20 Phi-Deltalytics
@Phi-Deltalytics,
I have been trading for years but just started with trading view and love the program.

I changed to study but get:
Add to Chart operation failed, reason: line 7: Undeclared identifier `study.percent_of_equity`;
line 7: Unknown argument `default_qty_type` of type type_error;
line 7: Unknown argument `default_qty_value` of type literal integer
Add to Chart operation failed, reason: line 7: Undeclared identifier `study.percent_of_equity`;
line 7: Unknown argument `default_qty_type` of type type_error;
line 7: Unknown argument `default_qty_value` of type literal integer

I want to add the alert function
Odpowiedz
Anyone willing to convert this to Alert (STUDY) file? I tried to follow the mentioned instructions will no success...
Odpowiedz
SreeniK OMFSmike
@OMFSmike, yes, I needed it too
Odpowiedz
Strona główna Skaner akcji Skaner Forex Skaner Krypto Kalendarz ekonomiczny Jak to działa Funkcje wykresów Cennik Poleć przyjaciela Dobre Praktyki Centrum Pomocy Rozwiązania internetowe i brokerskie Widżety Wykresy Lekka Biblioteka Wykresów Blog i wiadomości Twitter
Profil Ustawienia profilu Konto i płatności Poleceni znajomi Monety Wiadomości do działu obsługi Centrum Pomocy Opublikowane Pomysły Obserwujący Obserwujesz Wiadomość prywatna Czat Wyloguj