Latest version of the Range robot is in post 1. This contains an essential fix to an occasional problem that can crop up when a basket-send part-fails.
Trading system using relative strength 2,816 replies
Trading System Using Relative Strength-Part 2 1,499 replies
Updated CCFp and CFP indis for relative strength trading 55 replies
Relative Strength Basket Trading System 3,479 replies
DislikedPlease see attached image. About 3 minutes robot did nothing, ticks were sended by mt4tick tool and price moved too.
When upl was around $80 I loosed my nerves and I closed trades manually
Before I finished it, robot fired up alert and begun closing another basket. So I don't know what is wrongIgnored
DislikedNor me Pavel; not a hint of a clue. I have never caught this happening to me.
How old is your trading computer? The reason I ask is that mine is 3 years old, has only half a gb of memory and is slowed to a crawl by almost anything. I wonder if this is a possible cause of problems.
Ignored
DislikedIf you are running more than 1 EA on the same account then problems can occur with the same thread being used. This usually causes the IsTradeContextBusy() to return TRUE. In theory MT4 should open seperate threads for each EA but sometimes it doesnt and you can end up with a locked thread.
Just a thought!!!!
ScoobsIgnored
DislikedThis could be why I never meet this problem. I am trading the robot on a live account and have learned from bitter experience never to run two ea's on the same account.
Not sure mind, but all I can do is eyeball the program logic every time a problem arises and try to cure it. It is quite hard to cure a fault that I do not personally experience.
Ignored
DislikedNor me Pavel; not a hint of a clue. I have never caught this happening to me.
How old is your trading computer? The reason I ask is that mine is 3 years old, has only half a gb of memory and is slowed to a crawl by almost anything. I wonder if this is a possible cause of problems.
Ignored
DislikedIts a known problem with MT4.
By the way, apparently, a single EA can lock its own thread depending on how it has been coded. Not saying your coding is wrong Steve but there is allot of information on the net about it.
What you can do at the top of your code in start() is the following:
if(IsTradeContextBusy() == true) Print("Locked");
Then check the journal on how many times this is occuring.
Scoobs.Ignored
DislikedCheers Scoobs. Really useful to know.
I have added a modified version of this to V3.6 in post 1. To use it meaningully, users will have to have the indi loaded onto the chart to avoid all those subwindow errors that otherwise swamp the journal.
Ignored
DislikedSorry about English
I have broker that
from monday to friday - 1:500 Leverage
from friday to monday - 1:100 Leverage
Robot wrong calculate lot sizeIgnored
DislikedThese methods are used to some extent with the commercial world but you DO NOT buy equal lots of each currency within the group or basket. This is ONE of the reasons why DD occurs to a higher amount and more often that it needs too.
So, based on this, you should pick the strongest pair within the group (usually the one with the highest value) as your base currency and increase/decrease the lot size for the others.
To get these...Ignored
DislikedHello guys,
I have one big request to you - please would you be so kind and explain me, why use exactly this method of counting lot sizes?
Before some days I had EUR basket with -30 pips but with upl +30 USD (my deposit currency is USD). After I saw this, I started thinking about counting lot sizes from pip value and not from bid value. Is it nonsense?
Thank you.Ignored
DislikedYou use the bid price as we are buying and selling.
Therefore buying 1 unit of GBPJPY is not the same as buying 1 unit of EURJPY or AUDJPY or CHFJPY or NZDJPY or CADJPY or USDJPY.
Why would you be using pip value ?
Scoobs.Ignored
DislikedBecause one pair can run faster than others - I thought that we want to normalize all pairs.
For example EUR basket:
lot sizes calculated from bid value
EURJPY - 0.1
EURGBP - 0.14
EURUSD - 0.09
pip values are EURJPY 1.33$, EURGBP 1.62$, EURUSD 1$
when price for every pair moves 10 pips, profit will be:
EURJPY 1.33$
EURGBP 2.27$
EURUSD 0.9$
lot sizes calculated from pip value
EURJPY - 0.14
EURGBP - 0.1
EURUSD - 0.16
pip values are EURJPY 1.33$, EURGBP 1.62$, EURUSD 1$
when price for every pair moves 10 pips, profit will be:
EURJPY 1.86$
EURGBP...Ignored
DislikedThis will be something for Steve too think about based on AccountCurrency() etc.Ignored
DislikedMarketInfo(symbol, MODE_TICKVALUE) returns pip value always in deposit currency. And of course in the same currency as take profit.
I modified V3.6 to use this. I think it could produce better balanced baskets (if bid value has no other advantage).Ignored