bplturner / Publications
Forum
Visual Backtest Reports Different Signals Once Stopped
Hello, I am having a strange problem. I watch the visual backtest and look at the signals, then when I stop it new signals appear that weren't there during the visual backtest? The ones that show once I stop are the right signals I want to use! I have attached a picture showing the new signals
Custom Optimization
Hello, I've Googled for tutorials but have been unable to find one. I would like to use custom optimization to optimize by EA. Specifically, I want to maximize profit/drawdown$ ratio to minimize risk. Does anyone have an example of doing this
Open Trades Only During Certain Days
Hello, I was wondering if anyone had any example code for opening trades during certain days. I'd like to only open trades Sunday (when market opens) until Thursday. If the trades are profitable by Friday, I'd like to close them out. I'd like to do this to eliminate gap risk over the weekends
iStdDevOnArray
Hello, Is there any difference between double dev = double iStdDevOnArray( 0 , 0 , MODE_SMA , 0 , MA_LENGTH, i); AND double dev = double iStdDevOnArray( 0 , MA_LENGTH, MODE_SMA , 0 , MA_LENGTH, i); I don't see the point in calculating the standard deviation on the whole array if I can
MQL4 iCustom Indicators Not Working in Backtesting
All, I'm having a problem with iCustom indicators . They work when I debug, and they work in live trading with a demo account, but when backtesting they return the EMPTY_VALUE or they return "0" when I SetIndexEmptyValue(0,0). Here is how I'm calling them
Indicator on Indicator
Hello, Is there an easy way to find the indicator of an indicator. For instance, I'd like to take a simple moving average of the RSI and display that in it's own indicator. Can something like that be done easily? Any example code would be most helpful. Thank you