Triangular Arbitrage 16 replies
Nerr Smart Trader - Triangular Arbitrage Trading System 17 replies
Triangular Arbitrage and carry trade 6 replies
Triangular Arbitrage 7 replies
Dislikedi dont know if this could help i find in another forum and i try to make a picture with USD CHF and USD JPY you can see the two line price in same windows i wait to have a desequilibrum and enter a long and a short at same time this two pair are coorelated if someone can make an EA for this kind of trading could be very juicy i have other idea for EA i wait for answer
best regards
i send indic to testIgnored
DislikedHi again,
I attach here what i coded based on kurka's suppositions that the real price of a currency is the consensus one which can be calculated triangulating with main currencies:
I did it for EURCHF because my broker doesn't have all kurka posted in the first post so i took just 1 pair and tested for that one. SO for euchf we can triangulate this:
EURCHF AUDCHF EURAUD
EURCHF CHFJPY EURJPY
EURCHF GBPCHF EURGBP
EURCHF USDCHF EURUSD
So the price of eurchf in the ea i did is calcualted taking into reference, AUD,JPY,GBP,USD. The consensus is the ma of those.
How it works: if 3 of 4 show the same and consensus also is alligned with them- ea will go and trade. Ea will close when an oposite singal will come. I think kurka did the same but i believe it is not right to close on opposite signal because market can be regulated back slow and we don't get the signal. (ex 2 of 4 go oposite,1 or 4.. after a fiew bars it's back but we haven't got the signal for back)
Anyway the entry i think it's right, what i want is oppinions about a better exit if any interested in this strategy.
About the colors in the top of the screen:
Green - out of std deviation channel: should go up
Blue - it's between std deviation: we don't care
Red - out of std deviation channel: should go down.
First price is real price: (Ask) - second consensus of the next 4.
I used Ask everywhere and added or subtracted (spread+1) pips to check check if price is out of "spread range". Don't know if it's right but seems to show too manny buy signals lol. Mabe (ASK+ BID) / 2 instead? ... The transaction it makes it's only for testing purposes what you should look for is the colors/values in the top-left corner.
Test on EURCHF- m1.
p.s It might have logic errors/codding errors: this was coded in 2 hours and not tested more than 15 minutes , so please let me know if you find any.
Please let me know what you think, VictorIgnored
DislikedKurka,
If i use the Ask price the triangulations for ask are calculated, and i obtain some values. If i use Bid the values i obtain for the calculated currency are not in the spread zone of the initial calculated values for Ask not even near. So the triangulation for Ask and Bid are much more far between eachothers than real Ask and Bid values.
In this case which one will can be followed? Always i will have a triangulated consensus ask value that is predisposed for showing BUY positions and a bid value that will show more often SELL signals.
Or the negate: If using Ask it would be harder to see Sell signals, and for Bid harder to see BUY signals.
Another problem - technical this time: If the EA runs on currency X and needs the values from currencies A,B,C if A,B,C changes X will not change. If X changes A,B,C values will be read.
So at time T i might have a good signal for Buy or Sell but won't be found/shown by the EA because X was not updated by the metatrader even if A,B,C changed. This way you can fail to open new positions or fail to close when would be the time or close with loss a good position.
RefreshRates doesn't solve the problem because Start is executed only when a new "feed" from currency X was received.
If this cannot be solved i'm thinking of writing my own code that uses the packets metratrader switches on LAN with the broker server. This way it could be solved your other problem of checking some data from another website.
So instead of using a platform i could make my own standalone exe that communicates with broker server and also with other servers for additional informations. Anyway have to see how it performs further, will see...
Attached is a picture of problem 1 if anyone interested to see it.
- check In the top chart is the ASK price triangulated and in the bottom one the BID - check the big differences.
Tjpld: Forgot to tell you, this ea can't be backtested only forwardtested. Backtest anyway can't be done here i would need thick charts very very accurate.The trade is not essential at this point, it was placed there just for test there are bigger problems than that trade .
Ok, Have a nice weekend, i wait the next week to play with it more. Congrats for the thread/idea kurka, it set me back to work.Ignored
int start()
{
while(IsConnected()){
TickStart = GetTickCount(); //Count milliseconds for each loop for code optimization
CheckBid = Bid; // set Bid to correct value for calculations for upcoming cycle
MarketHours(); //Check to see what the market conditions are
if(OrdersTotal() > 0){ManageOrders();} // Look for open orders and manage them
Triggers();//Check to see if there are any new order opportunities
ChartComment();
Sleep(10);
}
return(0);
}
DislikedSo at time T i might have a good signal for Buy or Sell but won't be found/shown by the EA because X was not updated by the metatrader even if A,B,C changed.Ignored
DislikedI don't much about tri/arbs... but the banks are paying big bucks if you know anything about this.... check any job hunting site and you will see this, so there has to be something there if they are paying £200K basic, plus bonus.Ignored