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 cT​ra​der De​sktop 4.2 upda​te be​tters the de​sktop ver​sion of cT​ra​der with one of the bi​g​ge​st se​le​ctions of te​ch​ni​cal imp​rove​men​ts wi​thin seve​ral yea​rs, to be​ne​fit one of the most vi​tal me​mbers of the cT​ra​der eco​system - the deve​lo​per.

Among other imp​rove​men​ts, cT​ra​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​wo​rk for ba​ckwa​rd co​mpa​ti​bi​li​ty with all exi​sting cBo​ts and in​di​ca​to​rs.

Addi​tio​na​lly, cT​ra​der has alte​red the way an algo file is bui​lt by re​moving any de​pen​den​cy from the cT​ra​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​tb​rains Ri​der, to ea​si​ly re​fe​ren​ce other li​b​ra​ries from Nu​Get, to in​te​g​ra​te their algo with .NET pro​du​cts such as ASP.NET, WPF, Win​Fo​r​ms, and ML.NET, and to co​mpi​le cBo​ts and in​di​ca​to​rs using the 'do​t​net bui​ld' co​mmand and even wri​te code and co​mpi​le it on Li​nux or Mac.

Fu​r​ther​mo​re, the​re has been added imp​roved in​te​lli​sen​se with C# 10 su​ppo​rt, a new in​sta​ller and upda​ter for cT​ra​der, imp​rove​men​ts for ba​ckte​sting and opti​mi​za​tion, de​bu​g​ging su​ppo​rt, new co​mpi​ler se​ttings, imp​roved 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 cT​ra​der De​sktop 4.2 Beta

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

cT​ra​der De​sktop was mi​g​ra​ted to the la​te​st .NET 6 ver​sion, whi​ch brings a lot of imp​rove​men​ts and gives many new fea​tu​res for deve​lo​per use. From now on .NET run​ti​me will be di​st​ri​bu​ted with the cT​ra​der appli​ca​tion, using our new in​sta​ller and upda​ter. Algo deve​lo​pers will no lon​ger need to wo​r​ry 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​wo​rk 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​to​rs. Old cBo​ts and in​di​ca​to​rs will be laun​ched in a chi​ld pro​ce​ss run​ning .NET Fra​me​wo​rk, whi​le new cBo​ts and in​di​ca​to​rs that ta​r​get .NET 6 will be run​ning in di​ffe​rent pro​ce​sses using .NET 6. This way, cT​ra​der kee​ps great ba​ckwa​rd co​mpa​ti​bi​li​ty for all exi​sting cBo​ts and in​di​ca​to​rs 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​to​rs are now exe​cu​ted in di​ffe​rent pro​ce​sses. This allo​ws great ba​ckwa​rd co​mpa​ti​bi​li​ty for old cBo​ts and in​di​ca​to​rs, be​tter iso​la​tion of the main cT​ra​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 cT​ra​der pro​ce​ss.

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

Deve​lo​pers can now ea​si​ly upda​te cBo​ts and in​di​ca​to​rs to .NET 6 by swi​tching Ta​r​get in the Code Edi​to​rs too​lbar and bui​ld algo with the new ta​r​get. If your algo con​tains de​pen​den​cies on other li​b​ra​ries, we su​g​ge​st ma​king a copy and che​cking mi​g​ra​tion on the copy fi​r​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 cT​ra​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​tb​rains Ri​der
  • Ea​si​ly re​fe​ren​ce other li​b​ra​ries from Nu​Get, whi​ch con​tains 250,000+ li​b​ra​ries
  • In​te​g​ra​te your algo with .NET pro​du​cts such as ASP.NET, WPF, Win​Fo​r​ms, and ML.NET
  • Co​mpi​le cBo​ts and in​di​ca​to​rs using the 'do​t​net bui​ld' co​mmand and even wri​te code and co​mpi​le it on Li​nux or Mac

Imp​roved In​te​lli​sen​se and C# 10 su​ppo​rt

Bui​lt-in Code Edi​tor now has a new imp​roved In​te​lli​sen​se with C# 10 su​ppo​rt. 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 cT​ra​der

The cT​ra​der appli​ca​tion now has a new in​sta​ller and upda​ter. It wo​r​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 cT​ra​der ver​sion whi​le an upda​te is in pro​g​re​ss.

On​De​st​roy me​thod for in​di​ca​to​rs

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

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

Ba​ckte​sting and opti​mi​za​tion have been imp​roved 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​ppo​rt for tra​ding, pri​ce upda​tes and ma​r​ket data re​que​sts.

De​bu​g​ging su​ppo​rt

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​t​ro​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.

Imp​roved 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​to​rs.

Su​spen​ded in​di​ca​to​rs 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 cha​rt as sto​pped. When an er​ror occu​rs you will see a red icon on the top of the cha​rt. From the in​di​ca​to​rs list, you can re​sta​rt 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​fo​r​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​sta​rt it.

Auto-fo​r​mat code ho​tkey

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

Do​wn​load cT​ra​der De​sktop 4.2 Beta

Share this post

  • De​sktop


Spotware

Spotware

新闻

精选文章