QuoteDislikedI have solved automatic starting by creating a simple ea (just copying the code from "EasyOrder"-Script), BUT still needing the scripts in their original folder.
So the box starts now automatically by opening a chart.
How to calculate forex position sizing / lot sizing 17 replies
MT4 plugin for simultaneous trade on friend's account? 1 reply
BUY run profit 1 lot, SELL LIMIT 2 LOT down again n BUY 1 lot - EA Reqd 5 replies
Help with Lot sizing 3 replies
IBFX Lot sizing 10 replies
DislikedThanks for your indicator File45 and of course to my friend Sangmane for his superb script.
File45: I was wondering if you could create your most recent SL+TP-OE Pip Calc Indy to calculate the distances from the current bid, rather than from the order Price? I guess I am asking for the concept behind your SL + TP Distance indicator to be incorporated into the form of the most recent indicator. I find the expression of the Stop Loss and Take Profit distances from the current market price to be of more use than their distance from the Order...Ignored
DislikedHi
Having a look but proving tricky - may take some time - if you find one please post.
See images: faulty code polluting calculations - if a cross is corrected it knocks out a tick - see Table (cross reference table with terminal and chart)
note: Long position - current exit price Bid. Short position - current exit price Ask.Ignored
Dislikedkirk26,
if your BE-EA has the option to choose a MagicNumber,
it is easy to modify the EasyOrder tool .
Here is how this can be done:
You define a MagicNumber, for example MagicNumber = 1010
to use.
Now open the EasyOrder_Submit script with MetaEditor.
There you will find this line of code:
//settings
int MagicNumber = 0;
Change it to
int MagicNumber = 1010; and compile the file.
Result: Each order you place with the EasyOrder script will now
have the MagicNumber 1010 .
In your Breakeven-EA you choose MagicNumber = 1010
and it will...Ignored
QuoteDislikedOnly the option "PartCloseEnabled" from pips at xx% of the position?.
For example:
A gain 50 pips close 50% of the position and move the stop loss to break even for the other 50%
Dislikedchavez,
I donīt understand what you wish to have because the Partial close at x Pips profit is already coded in the EA.
This you can do with the EA.
Just calculate half of the initial lot-size and insert the Pips-distance
and the lots which should be closed and the EA will do it.
Or do you wish to enter a Percentage of the position ( for example 100 Pips takeprofit: you wish to close 50% of the position at 20 % of the takeprofit-distance ) and
on top of that you want to tell the EA that it should close X percent of
the initial lotsize ?...Ignored
Dislikedchavez,
the attached EA should do what you requested.
Please test it and let me know about it.
Please be aware that the lot-size must be round numbers.
50 % of 1.55 lots would be 0.775 lots and that is not allowed in mt4.
Therefore the lotsize would be 0.78 in that case.
The EA is calculating the lotsize according to the allowed size of the broker
automatically.
You just enter 50 % in PartClosePercent or if you wish 30%, you type 30 into the field.
Regardless what is set as default for Close_Lots , it does not matter because
the EA will override...Ignored