I took a look but saw thousands of lines and thougth it will take ages to find where it is what I need :D so currently I just made it work with USDJPY, maybe other xxxJPY pairs will work and I am testing only this pair now and focus on my algo.
thanks, later will need to try.
Can it be that mql gives wrong tick value? On this table it shows 1 pip value is 1000 yens
https://www.darwinex.com/spreads/forex
1000 yens is 9.66 dollars
https://www.google.com/search?q=1000+jpy+to+usd&oq=1000+jpy+to&aqs=chrome.0.0j69i57j0l2j0i395l6.4406j1j7&sourceid=chrome&ie=UTF-8
so if...
Have tried searching and implementing but cannot find correct example. Its weird because it should be needed for lot of people and should exist somewhere.
Can you give a link or code for that?
So far I have done by examples this
double calculateLotSizeForPips(double slPips, double...
Checked the calculated price on vs MT5 tester showing price. For some reason tester shows smaller loss than calculator shows.
it should be 6.14+441.9 = 448.08 loss + some commission. But it shows 424.34.
ok, we will see. Started coding in mql5 , slow process because lot of functions do not work as in mql4. Like in mql4 to get day:
int Day()
In mql5 according to migration tutorial:
int DayMQL4()
{
MqlDateTime tm;
TimeCurrent(tm);
return(tm.day);
}
https://www.mql5.com/en/articles/81
Really? I thought I will find most code examples on MT4 because not many people use MT5 as I understood.
Maybe I really should try and maybe there loss sizes will make sense. Thanks for idea.
https://www.mql5.com/en/forum/9949
Ok later I see they talk about visual mode, that is probably...
I did not know exactly about it, saw that there is a script button but did not read much what can I do with it :)
maybe later I should try. Now mainly trading on tradingview.com paper trading because not being profitable and I like that platform because of lot of instruments and bigger fonts...
Manually because did not try with script. Maybe I should.
I came with question - is the position size calculator having documentation of functions? I am thinking maybe use it on my robot? I could read source code but documentation is better to read. And not sure if it would be hard to use.
Yes, I did not include on feb 6 day ending.
Monday to tuesday - 1
Tuesday to wednesday - 1
wednesday to thursday - 3
next is 6:28
If I would include thursday (6), there would be 1 more. I mean would be thursday to friday swap.
They are not historically accurate, but as in the thread writes...
I have counted many times - its 17 swaps. Where is my mistake?
About swaps off - so you mean pair which does not end with USD does incorrect swaps and nobody is fixing this? And everybody are testing with incorrect swaps? Platform is so popular, it is really weird if nobody is fixing this.
So...
here is USDJPY short open and closed at SL.
So dayly swap eats 6.15 usd. Account is in usd. From jan 22 to feb 6 it has been 17 swaps.
There is no commision.
So my math is 6.15*17+52.5=157.05
but position loss is 175.48.
What am I missing?
I am not sure if swap usd per lot is changing...
Hello, I am now trying to learn new platform which good traders say is better than MT4 - pro real time. but it is hard to learn, and I am not sure if it does not have position size calculator or I just cant find.
If it does not exist, maybe you can create it for that platform also...
aha. And I need to somehow write to the chart objects. I thought maybe this is not necessary, maybe I could call some functions directly instead of writing and reading from chart. Because bot does not need to see the user inputs anyway.
I imagine could be function like calculateLotSize(SLprice...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.