Topics
Replies
yourne
05 Jul 2015, 18:33
hi there. recently i have been bothered by the same problem too. i want to dynamically modify the positions (trailing SL, asynchronously closing, etc) so basically the OnTick() method is my only option. however i will open a position in the starting tick of current bar and if the price hits SL before the current bar is closed, i want the cbot not to open the same position again (cause the signal is still there anyway). what is your solution? very grateful for your help :)
@yourne
yourne
30 Jun 2015, 14:44
RE:
9600302 said:
I have to add that not every arrow or similar character will look good on the chart. Some will appear crippled due to the font being used and you may have to test how they look on the chart until you find a good one. It took me some time to find a good left arrow as current price indicator that didn't look like a flat football.
haha, i think it could work well. maybe you can take a look at the solution in 2# though. feel like it may suit the chart better than strings.
@yourne
yourne
30 Jun 2015, 14:39
RE:
Spotware said:
Dear Trader,
Please take a look at the following indicator: /algos/indicators/show/142
Note that many users upload their indicators/cBots in our Website. You can search for an indicator or cBot that suits you. You can also contact one of our Partners to create an indicator or a cBot for you or post a job in Development Jobs section.
thx. that is really helpful!
@yourne
yourne
29 Jun 2015, 19:06
yeah i was stuck by this problem when i tried to build a rsi_atr cbot today. well i followed the guidance that @Invalid offered in #2 but the visual studio failed to refer the cAlgo.Lib.csproj.
here is a easy solution: after adding reference to VS project and building it (whether successfully built or not), there will be a cAlgo.Lib.dll file in the debug folder, then all you need to do is just clicking the "Manage Reference" button in cAlgo client and choose this .dll file. if you guys are stuck too, hope this solution is helpful.
@yourne
yourne
05 Jul 2015, 18:47
Or can i use both OnBar() and OnTick? cause i have tried this way but the cbot went crashed. is this just not allowed in cAlgo or there was something wrong in my code which i did not realized then?if i can use the two method in one cbot, there is no need to waste a time.
@yourne