Topics
Replies

firemyst
20 Jan 2025, 00:32 ( Updated at: 21 Jan 2025, 21:06 )

Then why not install Visual Studio? 

The “Community” edition is free.

Google for download link.


@firemyst

firemyst
20 Jan 2025, 00:31 ( Updated at: 21 Jan 2025, 21:08 )

Hi there:

Great job with the indicator! It's one I like to use as well. 

As for your issue - don't draw a rectangle. Instead, make the rectangles a “trendline”. Same height, but use a thickness of 4 or 5 instead of 1 (to show the body). The width will expand equally in both directions. 

Keep your “wicks” trendline exactly as they are.

So the “body” will be a thick trendline, which is how I did mine.

It'll be the easiest unless you want to do something fancier with the rectangles.

 

If you want to stick with the rectangles, try something along the lines of the following. I'm not sure if it will work, but worth trying:

                Rectangle r = Chart.DrawRectangle(...);
                r.HorizontalAlignment = HorizontalAlignment.Center;

@firemyst

firemyst
15 Jan 2025, 05:52 ( Updated at: 21 Jan 2025, 21:07 )

Why haven't you run your bot locally and do a “back test” for the dates Dec 16th - 20th to see if anything happens that you can pin point? 

 

Run your backtest against tick data and see what happens. 


@firemyst

firemyst
15 Jan 2025, 05:51 ( Updated at: 21 Jan 2025, 21:07 )

Why haven't you run your bot locally and do a “back test” for the dates Dec 16th - 20th to see if anything happens that you can pin point? 

 

Run your backtest against tick data and see what happens.


@firemyst

firemyst
15 Jan 2025, 05:44 ( Updated at: 21 Jan 2025, 21:07 )

Two things to try possibly:

 

  1. Close down your cTrader and when it's closed, go into Windows Task manager | Details tab to verify there are no instances running under ctrader.exe. If there are, kill them.
  2. If that doesn't work, try going into General Settings and click the button that says, “Reset Local Data to Default”. Make note of any special settings you have as that could reset them.

@firemyst

firemyst
14 Jan 2025, 03:24 ( Updated at: 21 Jan 2025, 21:07 )

The SL functionality in cTrader isn't “conditional” – eg, only trail if the next bar closes higher - with orders.

 

You'll have to program it in. 

On every new bar, check your conditions if the previous bar is higher than the bar before it. 

If so, go through the tick data and call the api to set your SL. I don't use tick data, so I don't know how you qualify “10 ticks below the current high” as the 10th tick could be closer to the high than the 7th or 8th tick.


@firemyst

firemyst
12 Jan 2025, 04:01 ( Updated at: 21 Jan 2025, 21:07 )

RE: RE: Error | Crashed in OnBar with TypeLoadException...

oliver.r.m.92 said: 

firemyst said: 

Have you tried updating the cTrader.Automate package to the latest version?

I think not, how can I do it?

 

https://help.ctrader.com/ctrader-algo/visual-studio-ides/#creating-new-cbotsindicators

 


@firemyst

firemyst
10 Jan 2025, 00:30 ( Updated at: 10 Jan 2025, 06:10 )

Can you post a screen capture of what you mean?

When you hover over the deal map, it shows you information regarding each individual position. 


@firemyst

firemyst
10 Jan 2025, 00:27 ( Updated at: 10 Jan 2025, 06:10 )

There's quite a few of us waiting for a response on this. You'd think Spotware would get the hint already and post some documentation on it.

 

Another post with the same question:

https://community.ctrader.com/forum/cbot-support/46002/

 


@firemyst

firemyst
10 Jan 2025, 00:25 ( Updated at: 10 Jan 2025, 06:10 )

A question or statement?


@firemyst

firemyst
10 Jan 2025, 00:25 ( Updated at: 10 Jan 2025, 06:10 )

I've asked this earlier - wanting to know what the parameters do, and still waiting for a response as well:

 

https://community.ctrader.com/forum/cbot-support/46002/

 

 


@firemyst

firemyst
10 Jan 2025, 00:22

How do I get the correct high and low?

You'll have to keep track of the highs/lows yourself. You could modify the indicator to do this if you have access to the source code.

The easiest way would be to create two new data series in the indicator, one for highs and one for lows. 

On each tick in the calculate method, do something like the following to save the high/low from each bar:

HighsDataSeries[index] = Math.Max(HighsDataSeries[index], Bars.HighPrices[index]);

LowsDataSeries[index] = Math.Min(LowsDataSeries[index], Bars.LowPrices[index]);

 

 


@firemyst

firemyst
10 Jan 2025, 00:17

Have you tried updating the cTrader.Automate package to the latest version?


@firemyst

firemyst
08 Jan 2025, 00:27 ( Updated at: 08 Jan 2025, 08:29 )

If you have access to the code, you can add in a Position Opened event handler to send you an email or pop up an alert whenever a position is opened.

If you don't have access to the code, why not suggest it to the coder you purchased from?


@firemyst

firemyst
08 Jan 2025, 00:26 ( Updated at: 08 Jan 2025, 08:29 )

Not natively within calgo and the ChartText object as they don't allow for font face selection. 

For a possible work around, you could try creating your own Label and then placing the label on the chart as a control.

Good place to start:

https://help.ctrader.com/ctrader-algo/guides/ui/Controls/

 


@firemyst

firemyst
08 Jan 2025, 00:16 ( Updated at: 08 Jan 2025, 08:29 )

There are a lot of limitations bots have when running in the cloud versus locally. For instance, you can't open network connections, send emails, read files, draw on charts, etc.

You haven't posted any code that's causing the issues, so nobody can really say for sure what's happening in your scenario unless someone from Spotware actually confirms there's a cloud issue.


@firemyst

firemyst
08 Jan 2025, 00:10 ( Updated at: 08 Jan 2025, 08:29 )

For such suggestions, you need to post to the Suggestions forum.

This is a tech support forum - Spotware doesn't come here looking for improvements users would like to see


@firemyst

firemyst
08 Jan 2025, 00:10 ( Updated at: 08 Jan 2025, 08:29 )

FOr such suggestions, you need to post to the Suggestions forum.

This is a tech support forum - Spotware doesn't come here looking for improvements users would like to see


@firemyst

firemyst
08 Jan 2025, 00:09 ( Updated at: 08 Jan 2025, 08:29 )

You can probably find a way to program it in if you find out how your broker is implementing it.

See this thread for more information:

https://community.ctrader.com/forum/ctrader-support/11509/

https://www.icmarkets.com.au/en/forex-trading-platform-ctrader/smart-stop-out

https://ctraderbrokers.com/ctrader-stop-out-methods-explained/

 


@firemyst