Embedding AI predictions into EasyLanguage strategies
Let’s now move on to how to embed the Volatility_Predictions
function into an EasyLanguage strategy. In this section, we are going to learn how to use the Volatility Predictor model for the following:
- Filtering trades
- Money management
- Position management
Using the Volatility Predictor model as a filter
To use the Volatility Predictor to filter trades, let’s start with the basic Intraday Breakout Strategy we learned in Chapter 8:
input:SR_Time(800),SR_BarsBack(12),WaitBars(1); var:Resistance(0),Support(0),SR_count(0); if time=SR_Time then Begin Resistance=highest(H,SR_BarsBack); Support=lowest(L,SR_BarsBack); SR_count=0; End; SR_count=SR_count+1; if time>=SR_Time and SR_count<Waitbars then begin buy next bar Resistance stop; ...