Source code is not available

Created at 09 May 2014, 02:30
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
GR

Green7

Joined 08.05.2014

Source code is not available
09 May 2014, 02:30


After upgrading from CAlgo 1.9 to 1.21 I have problem with my robot.

I have CAlgo robot inherited from class from dll.

In this case after compilation I can't see robot code in CAlgo :

"Source code is not available". Why ?

And how to solve this problem ?

(In the old version CAlgo this issue does not occur)

 

Regards


@Green7
Replies

Spotware
09 May 2014, 10:00

RE:

Green7 said:

After upgrading from CAlgo 1.9 to 1.21 I have problem with my robot.

I have CAlgo robot inherited from class from dll.

In this case after compilation I can't see robot code in CAlgo :

"Source code is not available". Why ?

And how to solve this problem ?

(In the old version CAlgo this issue does not occur)

 

Regards

Thank you for reporting the issue. We will fix it as soon as possible.

For now you can try this workaround:

  • locate your cBot source code file in Documents\cAlgo\Sources\Robots\
  • open it in notepad
  • add //:Robot anywhere except the begging
  • save your source code file

@Spotware

AlexanderRC
26 May 2014, 11:56

RE: RE:

Are there any chance that source code could be forever lost?


@AlexanderRC

Spotware
26 May 2014, 12:11

No, we remove old source code file only if migration was successful.
You can see "Source code is not available" message if you removed [Robot] attribute from the source code file. In order to fix that you need to open your source code file in notepad and restore [Robot] attribute. You can find the source code file in the following folder: Documents\cAlgo\Sources\Robots\Robot Name\Robot Name\.


@Spotware

neverman
06 Jul 2014, 10:28

RE:
algoЕVIПІм>юtсЕ9{‹‘ЏыxymrОiГђ79ОCКзC‘€j§”ТВrц†CЃ!Ы $e=n‡sHКu30yЇ
v+ьuцQ‘qФђжижзH$уя|Lo¤Ґ›wGбх Ё….K1еEщДц&§ѓФцwYТ ч@ЋCКЏђXѕгцБIмBЬ*#пШН{ЌN\ w­Џe5|як5U†{^«тg›NpО¦?„" ‘ф0лУ{•Яюy˜Ыbґ"ЈL\фT‡F†зN_ESTc&"±гHЮ€ф‡]6У¤„Xjжr;Хp·ь­,‚УЖk»Ї‹EXq3Йѕn»+%©”(ЖI9:Бы1	8a
ьcЄdЮюdнHбыхm•‹ЊўTГ]Rtсчѕ"кЈј‚гЧХ<ЧЖИЗLоьB$\@s4ДИЫе)№OнЬАу	!@uП	—QMї‰sъ#­Џ2”I@Єйњ$ѓwjpoЖvM3yЫFьAо…eк0&Ј~[ЪnФцTсфc9Lј•Z\2эУуMѕхAҐ"дТ“Њ”ЭЩ¬Дч(]џђэ•АCmП°›®:d!э6ЙnЇЦUеpVц)к„7нtЋЬ^^ф¦LВР0ъШgґѕцБd­‡“Ї1tpВC¶…шБfЮї`<‚f‹µІ њвП)%Хш0gNЄ«№ъь›$Єу}"ЁИУЩ‹pФg!U”Йгё†NYeгП5™сТ©/7мe+НAќікЃ;¬Ћ¦y0¤ѓt
ШўЮ›[КвЦ–#шХњЯz’%X¦ПёЈП[ОдЙ/цc€Kc°IлЦГpc¶EйГCг,"гh9шѕ>€€ic#›±Јд6ш/ЎјH„€нќ>,kX†ЇЋЗq&'МЮлИЛ|Ш°Ьк\ЇЬ»вЪ&°2/µb>4еј?И!['m¤[ђ&Оя"Ч
wсўг¶/j¬	“aГЊ2ЄµКЙ+йHђ’€ЌУu02‹“_CРІp
‹Ѕ­IїУуЊM*_p1жϘЃD*ЏKК'd•P-х&”Uр­е3·ОБчrДgm”/‰я!haЃh€У‰K,6…
Е†0»mҐЇкКSvf8ыГDвм]TVуlM)с‘yлЅ5і7Ч-‡›jGё‚2brј2˜›†}oле®ЦЎ˜чХЉYo–л@Ют¤€®*#ѓ#Ы:Њ%c]tw¤V’EUЋФ#а
!U_–,­J±гЉѓаY&<'SiщЏвo:ЫmІVЃtҐЫПўOBf:§0чсUBЎtх­Y4й<°ЇR«SЛ%Ч|vџb$/е3Щ±uSй‹Ѕ5У‹Пl0эЎ/%цXћР±»Ъяjн¦дТЗє™R3Ш——†Ќµ>Џ[°’9ВL†…µzЭ	nыйЉWEЃbлв·:¬?‚N_fҐSрЁЙь­т!Jч»ЙB°Э
ЉёЉBp2н’T ¶ BГЌац-A3­›gшЫ>–`ФY·6Њ »ћЯ!\њ3ёmr`В,}дЌ~е:IЪ®	егGѕЧ“{ yЅ%љТђўЋн]}в0ЅivЬ‘ЦBБ eФ»Q љюЈйL/ЖшД”A)¦ыe4Qq—CNЃ?лЧ)нХЏџU{"яmЮЛpu·G•ц«ѕ

G(0„ЏЋ„ЗµJі”;:6Ъ­GҐЮЮ8Ц8ޘQш0?зїћЖsн—лO€6·­…!В|Mј)†аји=TћЛ±тв%†/elѓ3цзb,SьT°йн^ЄяOЦaГЯЛ>Пр+`‡й·Љ	Є6љ‘%Ф
|AH‹\,-$мїЉ*ыі—Eњµїlм„жЇТЂrџ
СXІeЇK©R~CX^ћ2Їгл‚щ=ЩIТґBЎWчкр2•о@cгнбЏЧТ1J“J]xіЪѓ
Ђ!-Eсбzw
98PЌ/]hLS|ј6PzЋ=т‹<Р6ѓ=ќu`3бЫж»IFЏиxљТ=Ґ,ўљ<Џ&„°wБ%¦И,5V˜Rвпnї3.|wлСй~,ІaЄ“2#ыМih]ЯЭyБТ‡ч;aёЈЙЮ€бм}›Џ?•џ‡_є»О€UЎќlSC04‘LщВЂvЃ(tБУ—А5FїП;БЏdЯ±ФуГxNЁt­†оютЌV«"Ёч р"чN—щE и[ ]ќrн~—LґЌЩйЁШ,Оs8бi{D‚cW¤P“b—ؘхtв	ц·wПҐТм•w!Сл™иШр~40Ю„n‚Ф4кјPyЪa;ВPИ UіягJВ°›ОЭUOЩЇИ–~гe13h$qUЎ®нУѓ±<CnOцЌОчСYORФ,ЦCП-uѓ}%[’O¦rјЙPnЃшейrў^uc®К#ыHП
€њ'c4Oж®№Oџv™w*Ъ0tа$ХрЈTпCnРxC9ўоg\жCю;‹VЕЧ±Uо[rqВ0џ­Dl+Ђ0вЄњcy^iuJ№M®†ќ(ы	·DH/”ЁZ6vбФі)[TЖ=Њж]ѓ4gдaтЎ•€<uР9Х^~ЃtЈГпЉGў:­Ґ’VрxЌTџќЄEЫБ=7IH&к?wНє~G'ZкЈ"/бЙZй5М&ц °Tю*ZuUOЙ&Д*ь‹1аi?”У¦?EщN`CFЃO§9Ўh%Жsъќ$]Щsуаq}ўж^vњШM`эВgШ§ёoCЊјEю
ѓzЄLы]Љв)б‚—К]rЭ!їѕНїjnЁ,ыtBVЌ°pO'©2ИГЭМA4fLѕџ™о0ПoБЭ	¶g`UPИўфnЙY5dЖfЇ˜©ЙІјІ ©	[ISДu
tKгМРІ™‘~R$џіиg¶›u4
“ї–ЅЦУъ	Ф'К§ГА8¶UґИ0ьњ¦ЭМ7В_ИљFOJЈў}я
Ґ‡k1Ѕ•Б
Х:pµ‡>*нжAP|a›%ЌBP’DмJ[бGф|nл…Х@ЁЂQѕ+‘ґQЫЋ’шяm‡ИЉKМјB¦u®	eХњбјi]˜н!cЮчяЈє˜lvЉо]}#.:W0і@6јLIBЪ{GхН[щ ы^@гYI†uЏў®	Д*1:ыМЊ%АЯжzцъЏФf&<:¬‚жakXс·g]«I4B|ЬЅ>PЇfZБZ‚KэOM7ЃaЖк5гЬ&b¦^QЈО$kI%ё¤aРІщRбaёчЋєyЌ™€ЯRЙ}mТИзuэ§Мг8rCШ5&ъ|y€ц
)§¦¦„G(J'j˜еGДЅZГЬЙV	s,њЪ}i 1$9AЁ€Vq¬[L‘з®s¶ьWЊц•П][4`ћЧ·ЁЪY’Z;­;”ЦWІ5hI6}Pmb±П‡н7Ўcм°ў56є[џjВбЗЌ1\е‰џЅ@У-:сђ9·§ъFwd “БNд'нn¬¶дЗKqЛZc.х€Y_|gп,O0еиД7џђA%eЂwS2Ѓ„тµKB°eс И›ҐЬdh5^±ІСЪz|г§р&Y'Г…Ѓйъ€¤{гЧ0СЪMXЬG Г-џшИ_¶ДTEЎVvнНS6ГйДХM"FеYФж•РБ°ґИЖ8ЋїPЫь‹fѕЙQ•#‘U<#-椈Оv
fшЎ<gШQt#\џЊНW92І‡#Jч9РцЄрj“яM]OдGлтpЭЁу™љtЩЂ)ДЄ6Ґ”wqЇтПd№kBР/~ЏыFЄ•і)^ў·±8РЄЏB,йНnЅѓ9zXяўxр‡Ќ<NЉwЋвіД3ОWїw"$Хu>"БАЯ·МQ•±n)uкE2 `Ф©ЉґвєбЭ}ЈzHj:ЌЙ—ЦЗўДі-JЊЬсФ+Nз6+Хp·“
уТї:]|›*JKTw–Е µpU ЊПdRu“lWЗСаn/`VЄЛащpЃp* Ў·>Ћµўзии.(F•JЛџм7ю|сњ|¤}M~ЊР‡†’щдЌ1eГ„7tЇ*¤¦0внyЛнУВbц†CЃ!L$e=n‡szE}мQ Ц›ћЙЉј™ѕ6‚t:W°t±0.Wў}°˜тWrЋDuЗц7цtзzчeіEнвЙ3/Г”MѕIЁ4о0—d&/т¬C№ Й¶6ў¤]љжeВ“mъч¶~MжVшI` ЊыХп
К—‡¦Чт‚ЛФС№4ыV-цТ©РlЦЎF"ЕЙuІ€g/_/ШH,фУр}‹/Тб пщу7[ъ*°нђПЅ>V!HR›&U­рЮЦапKrEe!EЪ{ѕQ55~Ф[њ$±'iжЂЬeXљKY…;e‘§*­xdЪcчFОeЁЂQT№А.ЗбЊЕ‰јм@/єч…ъBґqwњMMп9
 ЇъЇџЕлsѓвЎсЊ#ЄЁяБІjђ=ќвB#бyЫњ‹{»<'5XА0†”=СР…)Ј]пxZ•Ы\Н]Ў
щЁhV%5Oьtќ§ Ѓгы Мј·Ц}­!%KЩ>ъ&ЊмФz«OБ,.АHwШІ$Ъђ»ЎЏR#*»C2°›^­в[V+RflPЉЁЅe›HsшqIѓYЏФiВ6§?Џ{“a›•}[®>T4>З{mV§»њ9?RЫSR†мLѕ-Б[ККгВ.%QоTГЏлЈV<A…GBчnИњ"•|№f‹ с„U}G­.zючN‹Т‰kТУХ‚ГУЁ%и˜ФS‡C7оъ їъШ@|pРN—В}ж“<	ЭЫ:W^-'vґќШkjЩьjѓV8JЧPХЎВlф.ЬBЕh›ГTъ7щк¦У№?џZЗЈр
?oj»Ѓ­и‹ы(ҐЄ=9ao>- WлЏ˜:ИЏ·ћФйЌ„˜Ё™xoNnои (|=кЕeГЮ¶SЯM"FеYФж‰РБ°ґИЖhЕѕRиь¦oѕБQМP9
Ц0№[w1‰х™^0gМQt#\џЊНW92І‡#–Pѕ·Щѓkс“4\OфGлтpЭЁу™
~ЩЂ)ДЄfо‘qqЇтОdёkР/~bсFЄ•і)^ў·±8РЄЏB,йНnЅѓ9zXяўxр‡Ќ<NЉwЋвіД3ОWїw"$Хu>"БАЯ·МQ•±n)uкE2 `Ф©ЉґвєбЭ}ЈzHj:ЌЙ—ЦЗўДі-JЊЬсФ+Nз6+Хp·“
уТї:]|›*JKTw–Е µpU ЊПdRu“lWЗСаn/`VЄЛащpЃp* Ў·>Ћµўзии.(F•JЛџм7ю|сњ|¤}M~ЊР‡†’щдЌ1eГ„7tЇ*¤¦0внyЛнУВbц†CЃ!L$e=n‡szE}мQ Ц›ћЙЉј™ѕ6‚t:W°t±0.Wў}°˜тWrЋDuЗц7цtзzчeіEнвЙ3/Г”MѕIЁ4о0—d&/т¬C№ Й¶6ў¤]љжeВ“mъч¶~MжVшI` ЊыХп
К—‡¦Чт‚ЛФС№4ыV-цТ©РlЦЎF"ЕЙuІ€g/_/ШH,фУр}‹/Тб пщу7[ъ*°нђПЅ>V!HR›&U­рЮЦапKrEe!EЪ{ѕQ55~Ф[њ$±'iжЂЬeXљKY…;e‘§*­xdЪcчFОeЁЂQT№А.ЗбЊЕ‰јм@/єч…ъBґqwњMMп9
 ЇъЇџЕлsѓвЎсЊ#ЄЁяБІjђ=ќвB#бyЫњ‹{»<'5XА0†”=СР…)Ј]пxZ•Ы\Н]Ў
щЁhV%5Oьtќ§ Ѓгы Мј·Ц}­!%KЩ>ъ&ЊмФz«OБ,.АHwШІ$Ъђ»ЎЏR#*»C2°›^­в[V+RflPЉЁЅe›HsшqIѓYЏФiВ6§?Џ{“a›•}[®>T4>З{mV§»њ9?RЫSR†мLѕ-Б[ККгВ.%QоTГЏлЈV<A…GBчnИњ"•|№f‹ с„U}G­.zючN‹Т‰kТУХ‚ГУЁ%и˜ 
//:Robot

 

not working, when open with notepad, you see what happens. I added the strings you are told, nothing happen. Where is the mistake ? BTW, the code i wrote already and can see it also is shows like that in notepad.


@neverman

Spotware
07 Jul 2014, 10:12

No, we remove old source code file only if migration was successful.
You can see "Source code is not available" message if you removed [Robot] attribute from the source code file. In order to fix that you need to open your source code file in notepad and restore [Robot] attribute. You can find the source code file in the following folder: Documents\cAlgo\Sources\Robots\Robot Name\Robot Name\.

The problem with [Robot] attribute was already fixed. You don't need to add it anywhere, especially to the .algo files.

.algo files are binary and encrypted. By modifying it in notepad you can corrupt it. Please do not modify .algo files.


@Spotware

ironmine
24 Jan 2016, 04:38

I have the same problem. Some cBots shows the message (in cAlgo): "The source code is not available". Other cBots (exactly the same cBots, created at exactly the same time, but with a different name and designed to work on a different currency pair) do not show this message.

What should I do? Hot to fix it?


@ironmine

ironmine
24 Jan 2016, 04:45

Also, I have a cBot which I created on my home computer. I can see the code of this cBot in cAlgo software installed on my home computer.

But, when I copy the file (.calgo) to my VPS and install it there, I cannot see the code in cAlgo software installed on my VPS. WHY?


@ironmine

Spotware
25 Jan 2016, 02:39 ( Updated at: 21 Dec 2023, 09:20 )

Dear Trader,

You need to build your .algo file with the source code for your code to be available when you transfer it. To build with the Source code, you click on the arrow next to the build button and you select the "Build with Source Code" field.


@Spotware