https://s3.amazonaws.com/a.storyblok.com/f/332895/1280X720/02ebe4e0bc/ctrader-desktop-42-massive-release-delivers-a-new-epitome-of-technical-superiority-for-developers-1748004553474.png

BySpotware

17 Nov 20256 分钟阅读

Share this post

The cTra​der De​sktop 4.2 upda​te be​tters the de​sktop ver​sion of cTra​der with one of the bi​g​ge​st se​le​ctions of te​ch​ni​cal improve​men​ts wi​thin seve​ral years, to be​ne​fit one of the most vi​tal me​mbers of the cTra​der eco​system - the deve​lo​per.

Among other improve​men​ts, cTra​der De​sktop has now mi​g​ra​ted to the la​te​st. NET6 ver​sion, provi​ding many new fea​tu​res for deve​lo​per use, whi​le main​tai​ning the old NET4 fra​me​work for ba​ckward co​mpa​ti​bi​li​ty with all exi​sting cBo​ts and in​di​ca​tors.

Addi​tio​na​lly, cTra​der has alte​red the way an algo file is bui​lt by re​moving any de​pen​den​cy from the cTra​der appli​ca​tion for the bui​ld pro​ce​ss. The who​le bui​lding pro​ce​ss now ta​kes pla​ce using .NET bui​ld too​ls, whi​ch gives users the option to use any IDE to work on their al​gos, from Vi​sual Stu​dio to Je​tbrains Ri​der, to ea​si​ly re​fe​ren​ce other li​bra​ries from Nu​Get, to in​te​g​ra​te their algo with .NET pro​du​cts such as ASP.NET, WPF, Win​For​ms, and ML.NET, and to co​mpi​le cBo​ts and in​di​ca​tors using the 'do​t​net bui​ld' co​mmand and even wri​te code and co​mpi​le it on Li​nux or Mac.

Fur​ther​mo​re, the​re has been added improved in​te​lli​sen​se with C# 10 su​pport, a new in​sta​ller and upda​ter for cTra​der, improve​men​ts for ba​ckte​sting and opti​mi​za​tion, de​bu​g​ging su​pport, new co​mpi​ler se​ttings, improved au​to​ma​te logs, live pro​g​re​ss for opti​mi​za​tion pass, and much more, to make the deve​lo​per expe​rien​ce as smoo​th as can be.

Do​wn​load cTra​der De​sktop 4.2 Beta

La​te​st .NET Run​ti​me

cTra​der De​sktop was mi​g​ra​ted to the la​te​st .NET 6 ver​sion, whi​ch brings a lot of improve​men​ts and gives many new fea​tu​res for deve​lo​per use. From now on .NET run​ti​me will be di​stri​bu​ted with the cTra​der appli​ca​tion, using our new in​sta​ller and upda​ter. Algo deve​lo​pers will no lon​ger need to worry about the .NET run​ti​me ver​sion on client ma​chi​nes.

Al​gos can be exe​cu​ted with old and new .NET

Now al​gos can be exe​cu​ted with both - the old .NET Fra​me​work 4.x and the new .NET 6. Plea​se note that the​se chan​ges will not affe​ct exi​sting cBo​ts and in​di​ca​tors. Old cBo​ts and in​di​ca​tors will be laun​ched in a chi​ld pro​ce​ss run​ning .NET Fra​me​work, whi​le new cBo​ts and in​di​ca​tors that tar​get .NET 6 will be run​ning in di​ffe​rent pro​ce​sses using .NET 6. This way, cTra​der kee​ps great ba​ckward co​mpa​ti​bi​li​ty for all exi​sting cBo​ts and in​di​ca​tors and brings the la​te​st .NET te​ch​no​lo​gy to your new pro​je​cts.

Algo exe​cu​tion moved out of pro​ce​ss

cBo​ts and cu​stom in​di​ca​tors are now exe​cu​ted in di​ffe​rent pro​ce​sses. This allo​ws great ba​ckward co​mpa​ti​bi​li​ty for old cBo​ts and in​di​ca​tors, be​tter iso​la​tion of the main cTra​der pro​ce​ss, and be​tter se​cu​ri​ty from po​ten​tia​lly ma​li​cious code. Now you will see mu​lti​ple pro​ce​sses in the Task Ma​na​ger run​ning un​der the main cTra​der pro​ce​ss.

Easy upg​ra​de from .NET Fra​me​work to .NET 6

Deve​lo​pers can now ea​si​ly upda​te cBo​ts and in​di​ca​tors to .NET 6 by swi​tching Tar​get in the Code Edi​tors too​lbar and bui​ld algo with the new tar​get. If your algo con​tains de​pen​den​cies on other li​bra​ries, we su​g​ge​st ma​king a copy and che​cking mi​g​ra​tion on the copy fir​st.

All IDEs and any re​fe​ren​ces

We chan​ged the way an algo file is bui​lt by re​moving any de​pen​den​cy from the cTra​der appli​ca​tion for the bui​ld pro​ce​ss. The who​le bui​lding pro​ce​ss now ta​kes pla​ce using .NET bui​ld too​ls.

This means that you can now:

  • Use any IDE to work on your al​gos: Vi​sual Stu​dio, Vi​sual Stu​dio Code, Je​tbrains Ri​der
  • Ea​si​ly re​fe​ren​ce other li​bra​ries from Nu​Get, whi​ch con​tains 250,000+ li​bra​ries
  • In​te​g​ra​te your algo with .NET pro​du​cts such as ASP.NET, WPF, Win​For​ms, and ML.NET
  • Co​mpi​le cBo​ts and in​di​ca​tors using the 'do​t​net bui​ld' co​mmand and even wri​te code and co​mpi​le it on Li​nux or Mac

Improved In​te​lli​sen​se and C# 10 su​pport

Bui​lt-in Code Edi​tor now has a new improved In​te​lli​sen​se with C# 10 su​pport. You can find out more about the la​te​st chan​ges in C# lan​gua​ge here

New in​sta​ller and upda​ter for cTra​der

The cTra​der appli​ca​tion now has a new in​sta​ller and upda​ter. It wor​ks be​tter than the previous in​sta​lla​tion te​ch​no​lo​gy and provi​des a be​tter user expe​rien​ce, in​clu​ding the abi​li​ty to laun​ch the old cTra​der ver​sion whi​le an upda​te is in pro​g​re​ss.

On​De​stroy me​thod for in​di​ca​tors

In​di​ca​tors now have an On​De​stroy me​thod that allo​ws one to free allo​ca​ted un​ma​na​ged re​sour​ces and run other fi​na​li​za​tion ta​sks.

Improve​men​ts for ba​ckte​sting and opti​mi​za​tion

Ba​ckte​sting and opti​mi​za​tion have been improved with mu​lti​ple chan​ges to re​move any di​ffe​ren​ces be​tween them. Opti​mi​za​tion adds mu​lti-symbol su​pport for tra​ding, pri​ce upda​tes and mar​ket data re​que​sts.

De​bu​g​ging su​pport

Both .NET 4.x and .NET 6 al​gos can be de​bu​g​ged in Vi​sual Stu​dio with real-time, si​lent or vi​sual ba​ckte​sting, or opti​mi​za​tion.

New co​mpi​ler se​ttings

A co​mpi​ler se​tting that allo​ws se​le​cting be​tween embe​dded co​mpi​ler and .NET SDK has been in​tro​du​ced. The embe​dded co​mpi​ler has li​mi​ted fun​ctio​na​li​ty, but is enou​gh for si​mple pro​je​cts wi​thout any re​fe​ren​ces. If you want to use the full po​wer of .NET for co​mplex pro​je​cts, se​le​ct .NET SDK or co​mpi​le from Vi​sual Stu​dio, other IDEs, or using the 'do​t​net bui​ld' co​mmand.

Improved Au​to​ma​te logs

cBot logs tab has been re​na​med to Au​to​ma​te and now sho​ws co​mbi​ned logs for cBo​ts and in​di​ca​tors.

Su​spen​ded in​di​ca​tors due to er​ror

A cu​stom in​di​ca​tor that has an er​ror will be su​spen​ded and will show on the chart as sto​pped. When an er​ror occurs you will see a red icon on the top of the chart. From the in​di​ca​tors list, you can re​start such an in​di​ca​tor or re​move it alto​ge​ther.

Live pro​g​re​ss for opti​mi​za​tion pass

In previous ver​sions, the opti​mi​za​tion ta​ble sho​wed only pa​sses that were fi​ni​shed. You were not able to see pa​sses that are in the pro​g​re​ss. Now, such pa​sses are di​spla​yed with real-time upda​tes. In​divi​dual pa​sses can also be sto​pped. This allo​ws for re​du​ction of wai​ting time when you see that a long-run​ning pass is not per​for​ming well.

Icon for an old algo file for a cBot

When an .algo file is upda​ted on the disk for a cBot, e.g. when you re​bui​ld it, you will see an icon sho​wing that you are run​ning an older ver​sion. To run the la​te​st ver​sion you will need to stop and re​start it.

Auto-for​mat code ho​tkey

New ho​tkey Ctrl + D has been added to the au​to​for​mat code.

Do​wn​load cTra​der De​sktop 4.2 Beta

Share this post

  • De​sktop


Spotware

Spotware

新闻

精选文章