I can't find the problem with this bot
Hello everyone,
These are code snippets from a bot that runs inside a trading platform called ctrader to modify trading positions, but the modify position shortcut (which is a signature method shortcut inside of ctrader API) is not working, please clarify the problem to be, Thanks.
I attached all the code that I figured will be related to the problem, Iam new to coding so might have missed somethings
here are the code snippets : (https://paste.mod.gg/jvrnynropsno/0)
The full codehttps://paste.mod.gg/hmkaddohfvlo/0
BlazeBin - jvrnynropsno
A tool for sharing your source code with the world!
BlazeBin - hmkaddohfvlo
A tool for sharing your source code with the world!
20 Replies
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/done and thank you
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
what am I missing
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Iam not sure Iam following, do you mean I should paste my code on a third party app for you to view it?
If so pls recommend a site that you use and I will post it there
There is a link in the command from above
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Thank a lotttt guys
I edited the post
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
BlazeBin - jvrnynropsno
A tool for sharing your source code with the world!
I'm telling you I edited the post and added it
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
np man, you're helping
so I should program a method for is trade active and just call it inside the onbarclosed?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Not so familiar, I know some little basics only
In my original code I did, it compiled properly too, just with these snipped I didn't give so much care to that as it was just for showcasing
https://paste.mod.gg/hmkaddohfvlo/0
this is the full code, but its so long I didn't want to give anyone a headache
BlazeBin - hmkaddohfvlo
A tool for sharing your source code with the world!
while I know what you meant from the image shared, I just want to point out for others that nested methods are a thing.
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View