drinkyd / Publications
Forum
Ask vs Bid Prices
Hi, For backtesting and setting the SL and TP values in OrderSend, does it matter significantly if I use Ask or Bid as part of the SL and TP calculation? I don't see any errors when I use either one. I know other posts said #1 is the correct way, but is that only for live trading? For instance
Help with Trade size for ordersend
Can anyone help? I'm backtesting with 5 digit broker data. Have $100,000 starting balance. Does the equation for my tradesize seem right for using 1% of account balance as risk and 1.5x the ATR for a stop loss? Do I need to do anything to change the stop loss units because I'm using the ATR value
while loop question
Hi, After I added the code below to my EA, my program just hanged without an error message. Can someone explain what is wrong with it? void OnTick () { ........... some code while ( OrdersTotal ()== 1 ) { if (BlueCurrent>RedCurrant) { ExitSellOrder(); break ;
Using SetLeveValue in EA
Hi, If an indicator has a level created by SetLevelValue (1, 0), can I use it in a condition in an EA? If so, how do I use it? I'm BT so I don't need to see it. I need the program to use it. For example, if (Blueline > "SetLevelValue"). How do I make use of the SetLevelValue
2 questions about arrays
Hi, I'm trying to understand the Didi_index indicator 1st question: Does 1 and 2 provide the same outcome for CurtaBuffer [i]? double A; int i = 1 ; 1 ) CurtaBuffer [i] /= MediaBuffer [i]; 2 ) A = CurtaBuffer [i] / MediaBuffer [i]; CurtaBuffer [i] = A; 2nd question: In the code below I received
iATR usuage
Hi, In MQL4 After I do "OrderSend (Symbol(), OP_BUY, 1.0, Ask, 0, Ask - iATR(NULL, 0,14,1)*1.5, Ask + iATR(NULL, 0,14,1), "TEST", 123, 0, GREEN);" on a backtest , I reviewed the trades and it showed me SL and TP that are calculated using a different ATR value than the value from loading the ATR
OrderSend question.
For BT purposes only on MT4 If I use OrderSend is the order taken at the next tick? Is there a function to say place an order 10 mins before close
Multiple m1 data sources
Hi, If I imported multiple m1 data sources from Dukascopy and Histdata, Do I need to delete one of them? Or is it ok to use for the backtester