Batuhan Ortay
Batuhan Ortay
Batuhan Ortay
Added topic Virtual Windows 10 on iPads or on Android devices
Anyone having any experience in using Metatrader on Windows 10 installed on an iOs or an Android tablet via VMware workstation virtual machine
Batuhan Ortay
Added topic Highs and lows of the past bars
In OnInit(), I need to learn which side (low or high) of a past bar generated firstly? If I'm correct, there are no tick data for the past bars, so how can I do that? Thanks
Batuhan Ortay
Added topic Zero divide error in strategy tester
accountBalanceinEuro = ( int )( NormalizeDouble (AccountBalance(), 2 ) / NormalizeDouble (MarketInfo( "EURTRY" , MODE_ASK), 5 )); I get "zero divide" error for this line. EA is working on EURUSD. How can I make the EA to read the EURTRY prices when
Batuhan Ortay
Added topic Wrong computation
int maximumLossPerTrade; int accountBalanceinEuro; double maximumLossPercentage; maximumLossPerTrade = ( int )(accountBalanceinEuro / 100 * NormalizeDouble (maximumLossPercentage, 1 )); When; accountBalanceinEuro = 14232 maximumLossPercentage = 1.8 I
Batuhan Ortay
Added topic Reloading an EA at a given time in strategy tester
I devised an EA which I'm planning to run on my computer from 8:00 to 20:00 every trade day. I will shut down my computer every night and reload the EA every next morning. How can I simulate this case in strategy tester ? Is there a function that
Batuhan Ortay
Added topic Getting the pre-modified value after closing Metatrader
Let's say that we modified the stop loss of an order with OrderModify() and then we closed our computer. How can we get the original first stop loss of the order after opening the computer next day? Is it possible in MQL 4? Thanks
Batuhan Ortay
Added topic Printing double values with thousand separators on chart
I want to print the values of account balance, equity etc. on my chart. How can I print them with thousand separators, for example like 12,920.12 or like 12 920.12 (Metatrader uses this format on its terminal tab) on my chart with the Comment()
Batuhan Ortay
Added topic Rewind in strategy tester
Is it possible? If possible, what is the shortcut key (It is not "Shift + F12" as said in some topics)? Thanks
Batuhan Ortay
Added topic Saving a parameter of a function in a .txt file in rows
void Log_On_Chart( string labelText, color labelColor)   {    int file_handle = FileOpen ( "abc.txt" , FILE_READ | FILE_WRITE | FILE_TXT );    if (file_handle != INVALID_HANDLE )      {
Batuhan Ortay
Added topic Time in strategy tester and toggling trading status from an EA
I have two questions: 1. Is it possible to programmatically control allowing trades? 2. In strategy tester , is it possible to select exact starting time of testing? Thanks
Batuhan Ortay
Added topic OrderTakeProfit() after modifying
OrderTakeProfit() does not show the actual take profit price if you modify the take profit value of the order, it shows the original value (it was 0 in my case) present there before modifying. Is this a normal behaviour or known bug
Batuhan Ortay
Added topic Error # 130
In this function , I'm getting error # 130 at the "else" section (underlined) of the OrderModify(). What is wrong here? Thanks a lot. int targetRaw = 40; double target = NormalizeDouble((double)targetRaw / 10000.0, 5); void Sell_Order( double price
Batuhan Ortay
Added topic Color in strategy tester
How can I change the color of the dashed green line drawn for executed trades ? Thanks
Batuhan Ortay
Added topic Slippage and stop losses
For the purpose of reducing the exposure to slippage, is there any difference between using regular stop losses embedded in open orders or using OrderClose() function at the relevant price level? Which method would you advise? Thanks
Batuhan Ortay
Added topic Finding the trades closed at take profits
I'm currently using a time and a profit filter for finding trades closed at take profits (my take profits are at 40 pips and I'm searching trades closed with + 30 or more pips for a specified time interval). Is there a more smarter way of doing this
Batuhan Ortay
Added topic OrderModify
When I want to modify only the stop loss of an opened order, should I use zeros for price, takeprofit and expiration parameters as shown in the following? OrderModify ( OrderTicket (), 0 , newStop , 0 , 0 )
Batuhan Ortay
Added topic EA's working on Android?
I know no. Just would like to ask if there is any possibility to do so in near future? I think that new Android devices are coming with rather powerful hardwares, so will it be possible to land our EAs/indicators on Android devices soon? Or, is it a
Batuhan Ortay
Registered at MQL5.community