Topics
Replies
eynt
26 May 2020, 08:45
RE:
Than you
In order to close the position I need to use ClosePosition which takes a parameter of type Position which does not has a constructor and therefor even if I have all the data from the files I can't create a new position instance in order to close the open position.
@eynt
eynt
22 May 2020, 12:14
RE:
Thank you
Unfortuanatlly I did not completly understood the way the SyncObjectsInstance works and therefor do not know how to add the ScrollXBy/ScrollXTo. Perhaps you show me the modifications I need to add to the SyncObjectsInstance itself so it not only sync objects but scrolling as well. I'm pretty sure it's a small change and I could take if from there.
@eynt
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
02 Jun 2020, 10:31
RE:
Thank you
1. How can I choose between with or without the source code?
2. This means that if I made changes on code in the origin computer after I ran the algo file on the destination computer I need to build my cBot?
@eynt