it does not return the real spread because Ask-Bid will return something like 0.00030 but the last 0 is cut out because it has no relevance. when you divide that to 0.00001 ( 5 digits ) you get 30 pips spread. as o solution use this:
I have this set to 10.0, but my trades are closing when the profit reaches about 1% of my account balance of $10,000. I get the message "Closing Order Because Equity Trailing was Triggered."
How can I prevent this from happening? What setting do I need to change?
Metatrader crashed?
This EA is using a lot of memory in computer. As I remember the author suggested to use max bars on the chart as 1,000 in Metatrader's settings:
May be it will help (it helped for me).
Metatrader crashed?
This EA is using a lot of memory in computer. As I remember the author suggested to use max bars on the chart as 1,000 in Metatrader's settings:

May be it will help (it helped for me).Thank you ND let me try that first
updated
nope still hang the metatrader probably some setting with my VPS server
I went through the thread quickly. Can anyone confirm that my understanding of the EA is correct:
after much tweaking an tuning my Metatrader works with electra on 19 pairs
i had to install 5 copies of Metatrader running 4 pairs each with 3 pairs on the last one and bars on chart set to 1000 as recommended by ND
opening in 120sec interval
i will restart the server on monday 0115hrs monday hope the restart will be good
cheers!
Bad candle for Alpari broker for NZDUSD and NZDJPY.
Look at the images:
It is not market price.
And this case is not good for Alpha EA and for Electra EA.
Because as a results of this bad candle:
- 2 trades were closed (Electra EA) for NZDJPY with + 14344 pips each (in profit);
- 1 trade was closed (Electra EA) for NZDUSD with -15945 pips (in loss).
- Alpha9v1.19 PET 1% EA got 'equity stop' (many trades were closed in losses).
they should reimburse you ...if your live $'s.
I had a few on a variety of platforms for some reason.
Here is the version with 5 digit pricing fix.
I added comments where changes were made.
Basically whereever Point is used I replaced with myPoint.
The value of myPoint is set with a call in the init function to SetPoint.
That function is at the end of the code.
There is also a comment about using MarketInfo(Symbol(), MODE_SPREAD) to get the normal spread for a pair instead of (Ask - Bid) / Point.
MarketInfo does not return the current spread, only the normal spread as far as I know.
Robert aka MrPiphi MrPip
first of all congrats for the initiative
i have also been modifying old scripts to 5 digits brokers and i have one suggestion and one solution for your post
1) for the point value u can use this:
newPoint = Point*MathPow(10,Digits%2);
2) for your question about (Ask-Bid)/Point
it does not return the real spread because Ask-Bid will return something like 0.00030 but the last 0 is cut out because it has no relevance. when you divide that to 0.00001 ( 5 digits ) you get 30 pips spread. as o solution use this:
NewSpread=MarketInfo(Symbol(),MODE_SPREAD)/MathPow(10,Digits%2);
i also attached my version of this ea for 5 digits brokers
now I have a question
does anyone trade a 5 digits broker?
newdigital, those 1400 pips were made with a 5 digits broker?
and one more, are u using the same settings for all pairs? and what are the settings?
thanks,
loopyno
electra setting: "PercentEquityTrailing" question
I have this set to 10.0, but my trades are closing when the profit reaches about 1% of my account balance of $10,000. I get the message "Closing Order Because Equity Trailing was Triggered."
How can I prevent this from happening? What setting do I need to change?
Thank you.
new digital or other mod, can you please reply to my question above?
Thank you.
Chris
I am having this settings with Electra:
EquityTrailing = False; // To enable a equity trail, it will close all orders when equity show profit
PercentEquityTrailing =1; // Percent of profit to start the closure off all the orders.
So, in my settings EquityTrailing is not used at all. Because the equity is moving to +1000 or more pips sometimes and it is more good to let it move.
I did not experiment with this PercentEquityTrailing sorry.