Topics
09 Apr 2025, 11:13
 16
 1
01 Apr 2025, 08:01
 59
 1
07 Mar 2025, 14:54
 72
 1
11 Feb 2025, 13:04
 162
 2
26 Jan 2025, 11:42
 156
 1
14 Jan 2025, 09:21
 158
 1
19 Dec 2024, 16:10
 0
 205
 0
11 Dec 2024, 09:55
 283
 2
04 Nov 2024, 17:12
 453
 5
22 Oct 2024, 06:29
 0
 299
 0
20 Oct 2024, 04:36
 323
 1
11 Oct 2024, 06:30
 0
 303
 0
11 Oct 2024, 06:30
 0
 319
 0
10 Oct 2024, 12:37
 310
 2
13 Sep 2024, 07:14
 1
 297
 0
21 Aug 2024, 16:28
 0
 298
 0
Replies

eynt
12 May 2020, 10:21

RE:

Thank you

 

That did not added more information. The information I'm interested in is the line number where the error happened and the line numbers of the called funstions.

For example, the function Calculate called the function Main at line X and Main called NewRevesedPick at line Y and so on until I can see that the error was raised at the function GetHLByIndex at line Z.

At the moment I get this:

 

12/05/2020 07:12:52.244 | Stack Trade:    at cAlgo.General.GetHLByIndex(MarketPosition position, Int32 index)    at cAlgo.TrendHL.PlotSet()    at cAlgo.TrendHL.NewRevesedPick(Double reversedPrice, MarketPosition Position, Int32 index)    at cAlgo.TrendHL.Main(Int32 index)    at cAlgo.TrendHL.Calculate(Int32 index)

12/05/2020 07:12:52.228 | Messsage: Postion cannot be flat. GetHL

12/05/2020 07:12:52.228 | Inner Exception: null

12/05/2020 07:12:52.228 | Catched error: cAlgo.General+NoFlatException: Postion cannot be flat. GetHL    at cAlgo.General.GetHLByIndex(MarketPosition position, Int32 index)    at cAlgo.TrendHL.PlotSet()    at cAlgo.TrendHL.NewRevesedPick(Double reversedPrice, MarketPosition Position, Int32 index)    at cAlgo.TrendHL.Main(Int32 index)    at cAlgo.TrendHL.Calculate(Int32 index)
 

 

Here is an example of an error I got on a WinForm Application which shows what i mean:

 

 

System.IO.IOException: The process cannot access the file 'C:\Users\yuval\Documents\cAlgo\Sources\Indicators\TrendHL\.vs\TrendHL\v16\Server\sqlite3\db.lock' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
   at System.IO.FileInfo.CopyTo(String destFileName, Boolean overwrite)
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite, Boolean excludeAt, Boolean excludeByDate) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 683
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 634
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite, Boolean excludeAt, Boolean excludeByDate) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 697
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 634
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite, Boolean excludeAt, Boolean excludeByDate) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 697
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 634
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite, Boolean excludeAt, Boolean excludeByDate) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 697
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 634
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite, Boolean excludeAt, Boolean excludeByDate) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 697
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 634
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite, Boolean excludeAt, Boolean excludeByDate) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 697
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 634
   at ManagerRobot.Form1.DirectoryCopy(String sourceDirName, String destDirName, Boolean overwrite, Boolean excludeAt, Boolean excludeByDate) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 697
   at ManagerRobot.Form1.BackupDirectory(String timeStamp, String sourcePath, Boolean excludeByDate) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 726
   at ManagerRobot.Form1.BackupCode(Boolean excludeByDate) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 797
   at ManagerRobot.Form1.btnCustomToBackup_Click(Object sender, EventArgs e) in D:\BTSync\BT Sync Robot\BTSync Robot HERE\RobotFiles\Projects\ManagerRobot\ManagerRobot\Form1.cs:line 788
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 


@eynt

eynt
12 May 2020, 10:02

RE:

PanagiotisCharalampous said:

Hi Yuval,

No there is no such option. Why do you need this?

Best Regards,

Panagiotis 

Join us on Telegram

 

To view and analyze past data without the price and charts been changed or added.

 


@eynt

eynt
08 May 2020, 12:17 ( Updated at: 21 Dec 2023, 09:22 )

RE:

PanagiotisCharalampous said:

Hi yuval.ein,

Yes you can use Visual Studio to debug cBots/Indicators.

Best Regards,

Panagiotis 

Join us on Telegram

 

 

 

Thanks

I've tried to follow the manual instructions however I get the following (I am using vs2019 full version):

 


@eynt

eynt
08 May 2020, 11:21

RE:

PanagiotisCharalampous said:

Hi yuval.ein,

You can only use the accounts of your broker using your broker's cTrader. If you are using OctaFX cTrader then you should be able to use your OctaFX account and OctaFX price feeds.

Best Regards,

Panagiotis 

Join us on Telegram

 

Thank you.

How do I do that? on https://id-ct.spotware.com/ under "Trading Accounts" I can see an OctaFX demo account, however on my windows app under "Spotware accounts connected to cTrader id" I can see only the demo accounts which I created via the windows application


@eynt