Forum

How does backtest give 2000$ in one day 0.01 Lot?

in backtest, it gives me 3 positions in date Dec 2, 2019, AUDCAD, 0.01 Lot at 00:00 as shown my qustions: 1- Is this error or real values? 2- if it's error, is it because of EA, Backtest or Chart? 3- is it possible to give the same value with negative? 4- How to avoid it if it's dangerous? while my

not enough money [instant sell/buy]

I find these errors test on EURUSD,H1 (netting) there are no trading operations test on XAUUSD,D1 (netting) strategy tester report 162 total trades test on GBPUSD,M30 (netting) strategy tester report 1 total trades test on EURUSD,M1 (netting) 2020.02 . 18 23 : 09 : 40 current account state

[invalid stops] during modification

Hello, I find an Error during backtesting as shown in this pic While: void ModifyBuy ( string Symboll , double StopLoss, double TakeProfit ) { for ( int posIndex= PositionsTotal ()- 1 ; posIndex>= 0 ; posIndex-- )

How to create 2 magic numbers in 1 EA

Hello, I want to use 2 strategies in one EA. So, I'll make 2 magic numbers for example Buy (Magic 1) will have Close position (Magic 1) and Buy (Magic 2) will have close position (if Magic == Magic 2) and the same with Sell But how to use position orders to make it have Magic 1 or 2

Why does Lot increase in money management Backtext to constant level?

Hello everyone, in brief, I design an EA increase linear value of lot with Balance (Money Management) For Example: for balance 100$ --------> 0.03 Lot so, balance 1,000$ -----> 0.30 Lot and balance 10,000$ ----> 3.00 Lot .... or balance 33.33$ -------> 0.01 Lot But by backtesting (8Years), I

How to count positions of symbol(s)

Hi everyone, I'm designing a Multi-Symbol EA and I tried to count every position of each symbol method of symbol splitting input string TradeSymbols = "EURUSD,GBPJPY,AUDNZD,CADCHF" ; string SymbolArray []; int SymbolsNo; // Number of Symbols

How to avoid Backtesting biases

Hello everyone, I need some advices to avoid Backtesting biases or misleading some of old traders don't trust Expert advisors even if they see it's giant results of backtest because some actions in backtesting are not the same of real trading (even if it's every tick ) What about your opinions

My pending order is tracking related to present price

Hello everybody, I have a problem with my Expert advisor For example : If I want to put Buy-Limit in step 5 Pips of the present price the problem is when the price changes ,the position of Buy-Limit will change to make the same step (5 Pips) my Code is trade.SetExpertMagicNumber(MagicNumber);

Can't count pending orders

Hello everyone, I have a simple problem with Buy-Limit order I want just one order to put but while backtesting I see unlimited orders put every tick and these are my codes if ( BuyLimit () < 1 ) if ( Buys () < 1 ) { trade.SetExpertMagicNumber(MagicNumber);