- Search Energy EXCH
- 586 Results (11 Threads , 575 Replies )
- danjuma replied 44 hr ago
Hi Nala66, appreciate your response, many thanks. Will just have use this strategy when I am off work and trade the LO.
- danjuma replied Apr 22, 2024
Hi Nala66. Just stumbled on this thread, and thanks for sharing your strategy. I have a couple of questions, and please forgive me if these have already be answered, but just want to establish whether this strategy would be applicable to my time ...
- danjuma replied Apr 16, 2024
Okay thanks. So, guessing the code would be: if(OrderSelect(0,SELECT_BY_POS)==false) { Print("OrderSelect failed error code is",GetLastError()); return(0); if (OrderType()==OP_BUY) { //do... } else { //do.... } } The only big issue I see with this ...
- danjuma replied Apr 16, 2024
Will this work, for example? string comment; if(OrderSelect(0,SELECT_BY_POS)==false) { Print("OrderSelect failed error code is",GetLastError()); return(0); } comment = OrderComment(); if (comment == "Buy") { //do---- } My thinking is that the last ...
- danjuma replied Apr 16, 2024
Thank you. Okay, thinking of using OrderComment(). How do I get the order comment of the last order that hit the TP (closed at the TP). Thanks
- danjuma replied Apr 16, 2024
I have written an EA to test a strategy which involves placing a buy and sell pending order at the same price on a grid, with target profit, and once the orders are triggered, another pending order of buy and sell is placed at the next level in the ...
- danjuma replied Apr 14, 2024
Thanks
- danjuma replied Apr 14, 2024
Hi T721, do you just play the FTSE with this strategy or you play it/or could be played with the other dividend indices?
- danjuma replied Apr 13, 2024
Just finished reading the thread. Many thanks to Waveskierro for sharing this, and all the others for their tips and experiences. I seem to get the basic gist, but again not completely clear about some aspects, as different people have tweaked it in ...
- danjuma replied Apr 12, 2024
Hi all, I tried to modify the ATR in pips indicator (original attached below) so to show/display tow different ATRs for two different periods on the chart (eg. ATR(10) for 10 days, and ATR (20) for 20 days). However my modification (code copied ...
- danjuma replied Mar 25, 2024
Okay BestTraderEV, all I needed really was assistance for a code, not a lecture. But thanks anyway. By the way, I can the basic stuff like you pointed "I hope that you know how to get Open[1] & Close[1] in order to get the candle direction? And how ...
- danjuma replied Mar 25, 2024
Hi BestTraderEV, one does not know which candle is the last candle in the retracement and that is not what one is after or the point, else that would indeed be the 'holy grail' The idea is just to place pending orders after candle changes in ...
- danjuma replied Mar 25, 2024
Hi Coders. I wonder if somebody can be so kind and assist me with a code for entries for the following strategy (Magic 100) please url . I can take it from there and write my EA to test the strategy. I am just not good enough to know how to code ...
- danjuma replied Mar 21, 2024
Hello. Thanks for your response. However, not sure how this helps me. I am not looking for an EA for OCO; I can find these easily myself. My request is to why the OCO code in my EA is not working as I want it to, as explained in my original post.
- danjuma replied Mar 21, 2024
Hi all, I made a request in this post some days ago url about incorporating a OCO (one cancel the other) code in an EA. Did not get much response, so I tried to figure it out myself (I am not well versed in coding mql4, just get by by copying and ...
- danjuma replied Mar 8, 2024
Thanks. Have had a look, but looks a bit complicated for me. However, I have somehow managed to piece a code together, which seems to have done the trick, so hope I have done it (fingers crossed). Will still appreciate any input (code) from an ...
- danjuma replied Mar 8, 2024
Hi all. Below EA (which I have put together by amending and borrowing codes from here and there; I am not an mql4 expert, just know a bit to get by by copying and amending codes) trades inside bars (using it on H4 charts); sends a pending buy (high ...
- danjuma replied Feb 25, 2024
Thank you very very much! Much appreciated!
- danjuma replied Feb 25, 2024
Please help, Thanks! The EA below (EA attached, original link provided) shows some error on compilation. I have attached a screen shot of the errors and the piece of code in the EA it refers to, and the whole code copied and inserted in this thread ...
- danjuma replied Nov 22, 2023
Hello. Would appreciate some assistance please. I am not an expert on Mql4. I just piece together snippets of codes here and there and come up with something that works most times. The code below is a buy script and calculates the lots based on ...