I do an optimization and the result is quite good, lots of parameter showing green color. But when I change to 3D graph most of the color is change to red color. Is there a condition that determine the color change between the 1d graph and 3D graph? Here's the result of 1D graph and here's what 3D
Hi, I wan to ask about buy and sell or entry price. I've heard about the word 'buy at the ask and sell at the bid' but there's no one talking about spread. Using the code below I want to know which one is correct between adding spread or not. void OnStart () { int distance = 100 ; double entry
Hi, I've met this 2 statement that's contradict with each other many many times when reading about trading strategy . Here's the statements: 1. Not all strategy works on all timeframe. And what I take from this statement is that each timeframe act differently to each other. 2. In
Hi, I have a batch file that I want to check if it is exist or not in OnInit() function. I use this code to if ( FileIsExist ( "Taskkill.bat, 1" )== false ) Print ( "***** file not exist, error code " , GetLastError (), " *****" ); else Print ( "file exist" ); The file is located in
Hi, I want to close another MT5 instances. To do that I use WinExec function. This is how I do it, int end=WinExec( "taskkill D:\Metatrader5 - Tester\terminal64.exe" , 0 ); It returns error 2. Is this a correct way to use WinExec
I want to calculate a history profit on OnDeInit event handler. This function only runs when backtesting the strategy. My code looks like this, void CStrategy::OnDeInitEvent( string & SymbolArray[], int numberOfTradeableSymbols, TRADE_DIRECTION TradeDirection) { if ( MQLInfoInteger ( MQL_TESTER ))
I put an indicator on the chart and created a sub-chart and drag drop moving average on the sub-chart. I want to code a signal when moving average crossing the indicator then open or close the trade. The problem is that the moving average value difference is large (like photo attached) so that I