Gopalakrishna R / Profile
Programmer
at
Madurai
Gopalakrishna R
Added topic Error 130
Hi, I am getting error 130. I read many articles regarding the same. But couldn't fix the error. because the same code is working with some input and not with some other. I am using NormalizeDouble function for Tradeprice, SL and TP. Pls help
Gopalakrishna R
Added topic What is wrong with my code?
Dear All, I trying to write a code to Trail Stop Loss . ///////////////////////////////Trailing Stoploss////////////////////////////////////////////////// if ( OrdersTotal () >= 1 && startModify) {
Gopalakrishna R
Added topic Error 130
Hi everyone, I am a newbie to MQL. I'm trying a testing EA. I am getting Error#130. Couldn't find the reason. Pls find the code below and copy of the journal below. double Buy_Signal = 0 ; double Sell_Signal = 0 ; int i = 0 ; int Total_Orders = 0 ;
Gopalakrishna R
Added topic Cannot enable "Use hedge in trading" option
Hi Everyone, I tried to open a demo account in MT5 platform. I couldn't enable "Use hedge in trading" option. I couldn't tick it. Please help me to enable it. Thanks in advance
Gopalakrishna R
Added topic How to differentiate an Open Market Order and a Pending Order?
How to differentiate an Open Market Order and a Pending Order ? Here I have tried a test code. I'm placing orders using code and checking some parameters. Please tell me which parameter should be checked whether the order is open or pending
Gopalakrishna R
Added topic No. of Lots
Hi, Here I am trying to find out how many 0.1 ( SYMBOL_VOLUME_MIN ) lots are there in a position. I am using below given code to find it. Only BUY-Instant orders are used here. Lot Size is maintained as 0.1 while opening, adding and closing of the
Share on social networks · 1
2
Gopalakrishna R
Added topic Will missing Data affect EA?
Hi, Right now I am back-testing my EA. In EURUSD I find a gap or data-missing. I have attached the screenshot. Is there any way to will it up? or Will that gap disturb while back-testing? If I want to test from 2004 means what should I do? I am using
Gopalakrishna R
Added topic Doubt on OnTrade()
int one = 0 ; int Magic = 1 ; void OnTick () { if (one == 0 ) if (Buy_Call( 0.01 , 1 , "First_Buying_" )) Print ( "Bought" ); } void OnTrade () { one = 1 ; Print ( "One
Gopalakrishna R
Added topic How to Get Order details from Deal
Hi Friends, This is may be like a re-post. But my doubt is still there. I want to know the following. 1. I placed an Order with TP mentioned. While ENTRY_IN at OPEN_PRICE a DEAL occurs and in
Gopalakrishna R
Added topic OrdersTotal in MQL5
Hi Friends, I am trying to port my EA from MQL4 to MQL5. I want to create an array having open prices of open trades at that moment. Codes and output of both MQL4 and 5 are given below. In MQL5 if I add an order
Gopalakrishna R
Added topic Need help with OrderSend()
Hi, I'm trying to place order using the code given below. Please tell whats wrong with it. I thought there is a problem with Ask, so I used NormalizeDouble (Ask, 4 ) MqlTick last_tick;
Gopalakrishna R
Added topic iCustom give a wrong output
Hi, I am porting my EA from MQL4 to MQL5. In that I am using iCustom() function. It returns a very different data. The output is 2013.07.01 13:23:48 test (EURUSD,H1) Sell = 4035.0 2013.07.01 13:23:48 test (EURUSD,H1) Buy = 4034.0
Gopalakrishna R
Added topic Migrate to MQL5
Hi, I would like to migrate the indicator attached below to MQL5. Can anyone do it for me? I tried so many method s and followed so many articles . But couldn't do it. Thanks in advance
Gopalakrishna R
Added topic MODE_MAIN in mql5
I'm very new to MQL5. I am trying to migrate an indicator to mql5 from mql4. While using iStochastic I'm getting following errors. Error: 'MODE_MAIN' - undeclared identifier BFS_Stoc.mq5 107 87
Gopalakrishna R
Added topic Difference between MQL4 - IndicatorCounted and MQL5 - Bars
Hi, Can you please tell me whether we can use MQL5's - Bars in the place of MQL4's IndicatorCounted() ? I am trying to port an indicator from MQL4 to MQL5. Thanks in advance. -Krishna
Gopalakrishna R
Added topic Previous Day High
I want to find the previous day open, high, low, close. (PERIOD_D1) I used the code datetime open_time = StrToTime("00:00:); double shift1 = iBarShift(Symbol(),PERIOD_D1,open_time); double open =
Gopalakrishna R
Added topic How to place orders on Multiple Symbols?
Hi, I am running an EA on EURUSD . I would like to place orders on other symbols. How can I do it? Thanks in advance. With Regards, Krishna
Gopalakrishna R
Added topic How to make Pay-out
Hi, I am developing an EA. While back testing I would like to make payout the profit at the end of my trading cycles. (OrdersTotal() = 0) How can I make it? Or The account balance should be reduced to opening balance and paid-out
Gopalakrishna R
Added topic t/p is not working properly
ticket= OrderSend ( Symbol (),OP_BUY, 0.1 ,Ask, 3 , 0 ,Ask+ 0.01 , "BFS_Orders" , 0 , 0 ,Green); ticket= OrderSend ( Symbol (),OP_SELL, 0.1 ,Bid, 3 , 0 ,Bid- 0.01 , "Second_Orders" , 0 , 0 ,Green); Hi, I'm running strategy tester
: