Information
Username: | galafrin |
Member since: | 26 Jan 2013 |
Last login: | 18 Dec 2023 |
Status: | Active |
Activity
Where | Created | Comments |
---|---|---|
Algorithms | 2 | 18 |
Forum Topics | 6 | 55 |
Jobs | 0 | 5 |
About
Last Algorithm Comments
It's basically the Price ROC in angle degrees sliced in 9 parts,,
Thanks for uploading your code, At first sight it is remainder of ADX volatility , in fact it is quiet near at double the period but with a simpler code.
There might be an error in line 85 ;
_iSeries[index] = ((1 - _k)*_iSeries[1] + _k*diff/sum);
it should be
_iSeries[index] = ((1 - _k)*_iSeries[index-1] + _k*diff/sum);
Based on the formula of exponential moving average
trend_meanreversion you are right, I downloaded Demarker https://ctrader.com/algos/indicators/show/411 and renamed it as Osc_Demarker , by doing that there is no need to change the code above.
Positions.Closed abarca todo los symboles , entonces hay que filtrar en closedPosition así:
var pos = arg.Position;
if ( arg.Position.SymbolCode != Symbol.Code ) return;
if ((pos.NetProfit < 0))
Positions.Closed -= closedposition;
OnStart();
Suerte.
Merci pour le partage du code Ludohoebi.
Hello Paul, to get it work in non-english localized system , it need this :
line 236
fxNews = new FxNewsDailyFxDownloadPath, IncludeMediumLevelNews, IncludeHighLevelNews, CustomDateFormat);
replaced by this:
CultureInfo CI = Thread.CurrentThread.CurrentCulture ;
Thread.CurrentThread.CurrentCulture = new CultureInfo ( "en-US" ) ;
fxNews = new FxNews(DailyFxDownloadPath, IncludeMediumLevelNews, IncludeHighLevelNews, CustomDateFormat);
Thread.CurrentThread.CurrentCulture = CI ;
Then it works in all cultures, otherwise it refuses alphabetic Myfxbook date format on non-english culture system.
Thanks for sharing the code Paul.
Last Jobs Comments
or carlosbarberomarcos@gmail.com
Telegram channel Car Bar
Helo I can do this job
Hello as a member since 2914 and a freelancer I can do this job if you agree
Hello as a member since 2014 I can do this job, ready to take on if you agree
Hola, sencillo pero eficaz robot sin embargo la pregunta de confirmar la señal antes de abrir queda por resolver.