Here is a simple code that I was curious to test.
It applies on EUR/USD, H1 timeframe (other pairs / timeframes should be profitable).
We go LONG if :
ADX50 > 10
DI+(50) > DI-(50)
low of the candle < Bollinger20(down) and close > Bollinger20(up)
SL : 60 pips
TP : 10 pips
We go SHORT if we meet the opposite conditions.
So it’s a scalping strategy. Test and improve !
Defparam Cumulateorders = false
n = 5
ca1 = ADX > 10
ca2 = DIplus(close) > DIminus(close)
ca3 = low < BollingerDown(close) and close > BollingerDown(close)
IF ca1 AND ca2 AND ca3 THEN
BUY n SHARES AT MARKET
cv1 = ADX > 10
cv2 = DIplus(close) < DIminus(close)
cv3 = high > BollingerUp(close) and close < BollingerUp(close)
IF cv1 AND cv2 AND cv3 THEN
SELLSHORT n SHARES AT MARKET
// Stops et objectifs
SET STOP pLOSS 60
SET TARGET pPROFIT 10
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.ProRealTime ITF files and other attachments :