Go through all my posts, try them as examples and that way you can learn a lot 
Posts made by miro1360
-
RE: "Renko Style" EA with trailling Stop, without indicator.posted in Questions & Answers
-
RE: "Renko Style" EA with trailling Stop, without indicator.posted in Questions & Answers
It should have similiar result ..
But these pink blocks needs additional filtering ...
And for checking only a last trade change the parameter "Not more than "n" history trades" to 1:
-
RE: Multidimensional Arraysposted in Questions & Answers
yes it is implemented
https://fxdreema.com/shared/5rvzn7pN -
RE: File Excelposted in Questions & Answers
load it to your google drive and post a shared link for the file

-
RE: PositionCloseBy functionposted in Questions & Answers
you can change the code like this:

which will run that function only once, when both ticket numbers are recorded... or you can create another rearrangement of blocks too, like this one:

where the custom code block happens after all the cycles are finished
but in this case, custom code block must have its ID number larger (yellow circle) than any number from the green circle... each for loop can go through all the trades (can happens more than 1x) and condition blocks as filters can be added (and record only that trade, which will match the filter) ... but thats your job

-
RE: PositionCloseBy functionposted in Questions & Answers
The function PositionCloseBy is from the Trade.mqh library and belongs under CTrade class and therefore an object must be created.
https://fxdreema.com/shared/E5T9pyT8e

from FxDreema generate only mql5 code
open generated code in the MetaEditor, in your computeradd this include in the top of code:

Above the OnInit() function add this CTrade object Trade definition:

Click on the Compile button in the MetaEditor, it generates ex5 file and done
-
RE: Custom Code from MQL4 to MQL5posted in Questions & Answers
I suggest you to read all the comments too, they may contain an interesting reply:
-
RE: Generate a random chartposted in General Discussions
generate data in excel, save as .csv
import these data into metatrader (Tools - History center - Import)
consider some dependencies (close[1] == open[0]) -
RE: Working with custom indicator HELP!posted in Questions & Answers
it is not my indicator ... so what can I say about ....
buffers there are in the separate window as lines
arrows are not in buffers, so you can not select arrows from buffers in this caseperhaps you can check the arrow with condition blocks, its color, date, but it can be quite tedious ......... or rewrite the indicators code to use arrows in buffers

-
RE: Break even line on mutiple tradesposted in Questions & Answers
you can easily avoid onTimer function,
this is without onTimer (not tested
)0_1547316058979_miro1360_GravityBE_1.0_noTimer.mq4
edit: seems be not working in tester

-
RE: Break even line on mutiple tradesposted in Questions & Answers
It was long ago
... Do not import it into My Indicators. Place it on the chart as indicator together with EA, it should plot the line automatically and you can read the line with EA (I do not remember its name but you can find it by listing chart objects). -
RE: My Indicators - Adding ex4 fileposted in Questions & Answers



these enum parameters (drop down list) have unknown number, that means .. you can find them manually, run EA in tester up to the end and indicator appears (first one with parameters as EA has), next place the same indicator into finished chart (with similiar parameters) and you can see, that it is not the same, that means you must find/match the right ID of parameter (in the EA start with 0 and try to match them
:D) ....

-
RE: My Indicators - Adding ex4 fileposted in Questions & Answers
maybe it can be, all parameters and buffers must be added manually
-
RE: My Indicators - Adding ex4 fileposted in Questions & Answers
for simplification use a cross of 2 moving averages, you can get similiar results

-
RE: How to verifiable data type of edit field's variable?posted in Questions & Answers
try this:
https://fxdreema.com/shared/rW0qyPdQb
this example returns 0 ... but you can edit it in many ways, ... lets say user enters wrong value, the previous value can be returned, and so on ...
-
RE: Project Description Does Not Work!posted in Questions & Answers
Ahh this one ... yes it seems be dead
I am sure that admin repairs it 
-
RE: Project Description Does Not Work!posted in Questions & Answers
https://ctrlv.cz/shots/2019/01/10/m3Kl.png
on my side it is working, I tried chrome only ...


