Opara
Opara
Friends

Add friends via their profile or user search and you will be able to see if they are online

Opara
Added topic Is it possible to enter a trade based only on a single price, and
have the EA determine from the direction of price movement relative to the value of the entry price, decide which trade (BUY or SELL) to make ? . . I have seen some EA's while trying to solve this problem and they all so far enter a trade based on
Opara
Added topic Serious problem with Logic of trade entry point
I am learning MQL and writing an EA to carry out trades for me. I am new to programming, and have been working for two days now trying to work out how to solve this problem, with different scenarios and logic within the program. The problem I have is
Opara
Added topic OrderPrint - is it possible to send the output to another file other than the log ?
OrderPrint - is it possible to send the output to another file other than the log
Opara
Added topic How do I test a variable for a +ve or -ve number ?
I want to check if a variable has a positive or negative number, how can I do this
Opara
Added topic Problem getting a function to compile
int A=3; int B=4; int C=Gipo(A,B); int Gipo(int a,int b) { int c = (A+B) ; return(c); } what is wrong with this function ? I can not work it out, I copied it exactly from a function written on the internet
Opara
Added topic problem with FileOpen function - returns error at compile
int handle; handle=FileOpen(SAR1.txt, FILE_WRITE ,';'); if(handle<1) { Print("File was not found: ", GetLastError()); return(false); } . this returns error 'SAR1.txt' - variable not defined How do I define this text file name as a
Opara
Added topic how do I get a value to 5 decimal places (double) from iSAR(NULL,0,0.02,0.2,0) ?
how do I get a value to 5 decimal places (double) from iSAR(NULL,0,0.02,0.2,0) ? . If I use double SARba = iSAR(NULL,0,0.02,0.2,0); I only get it to 4 decimal places
Opara
Added topic Using StrToDouble to try and get a numerical value back from a string
I think this might be a long way round a problem. I have iSAR(NULL,0,0.02,0.2,0) which I want to display in a comment, so I make it a string (to get precision to 5 decimal places) I use DoubleToStr (SARba,5); (where SARba = iSAR(NULL,0,0.02,0.2,0) )
Opara
Added topic Why will OrderSend work when I send for a Buy trade and not for a Sell trade ?
I have this code if (orders==0) { OrderSend(Symbol(),OP_BUY,0.01,Ask,3,Bid-30*Point,Ask+30*Point,"ORDER_BUY",11111,0,DarkBlue); } ------------------------------------- if (orders==0) {
Opara
Added topic Convert a string to a number
I have a string value 1.44567 how do I change this back to a double value ? thankyou
Opara
Added topic Could anyone tell me what this (int i=total-1; i>=0; i-- ) means please ?
Im new to programming and I have found this and I cant work out what it does thanks
Opara
Added topic How do I retrieve the latest Parabolic SAR value ?
I have this code: double dSAR = iSAR(NULL,0,0.02,0.2,0); Comment("Last SAR Value = ", DoubleToStr(dSAR,5),"\n", "SAR 0 : ",iSAR(NULL,0,0.02,0.2,0) ); The SAR value from the iSAR function shows on the comment as 1.36710
Opara
Added topic How do I return the last value of Parabolic SAR ?
I am using the function iSAR(NULL,0,0.02,0.2,0) and what I want to do is return the latest value of ParaSAR, and add it as a comment in the main window Comment("SAR 0 : ",iSAR(NULL,0,0.02,0.2,0)); My first problem is that it only returns
Opara
Added topic Where do I find very simple scripts to learn from ?
I am learning MQL but as I have never programmed before, I find online tutorials difficult. Could you please tell me where I can find very simple, small working examples of EA's to learn from ? Thankyou very much Michael
12