Topics
Replies
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: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 )
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
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: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
firemyst
07 Jan 2025, 11:17
RE: RE: Open, High, Low, Close are different on cTrader Chart and TredingView
golu.vora2018 said:
firemyst said:
Different brokers have different price feeds, and thus will some times have different values on charts.
If you were using another broker's cTrader platform, the price should be relatively the same since they're all reading pricing information from cTrader feeds.
But since you're using trading view which has a different price feed, you can expect to see different values every so often.
Hi,
Thanks for the replay. I am using same broker and same account for log in Tredingview and cTrader. FpMarket is broker.
Here you go. For Liquidity Providers, FP Markets apparently uses the following:

And Trading View, regardless of broker, uses CQG data:

@firemyst
firemyst
07 Jan 2025, 10:58
RE: RE: Open, High, Low, Close are different on cTrader Chart and TredingView
golu.vora2018 said:
firemyst said:
Different brokers have different price feeds, and thus will some times have different values on charts.
If you were using another broker's cTrader platform, the price should be relatively the same since they're all reading pricing information from cTrader feeds.
But since you're using trading view which has a different price feed, you can expect to see different values every so often.
Hi,
Thanks for the replay. I am using same broker and same account for log in Tredingview and cTrader. FpMarket is broker.
YEs, but the underlying broker for Trading View is Trading view. FP Market's own website says, “TradingView provides real-time market data, including price quotes, volume, and other relevant information”. To me, that means Trading View charts on FP Markets don't use FP Market's price feed.
Hence they would have different price feeds, and thus different prices.
@firemyst
firemyst
06 Jan 2025, 00:21
Seems to me you might have to use a second parameter that indicates whether or not you want to use the value from Local Storage (if available, because it might not have been set yet for the current time frame you are on), or use the setting that's chosen in the parameter field.
@firemyst
firemyst
05 Jan 2025, 10:17
( Updated at: 06 Jan 2025, 00:07 )
Each broker can set the size of a pip.
So yes, what you've shown in the size and number of decimals would have something to do with it.
Other people who are affected are those that trade indices. For instance, Pepperstone's pip size on NAS/Dow/Dax is 0.1 points whereas other brokers like Fusion Markets have a pip size is 0.01 points. So 100 pips on Fusion Markets on the NAS is 10 pips for anyone using Pepperstone's platform to trade NAS.
@firemyst
firemyst
03 Jan 2025, 05:19
RE: RE: RE: RE: RE: RE: Deleting Sample Bots that keep coming back
Ok, thanks, the terminolgy in my question was not too good. Understand VPS as you describe, but would you consider a Vps to be in “the cloud”?
No. It's not in the cloud. The VPS is located in a specific data center in a specific country with a specific IP address for trading the markets.
Ok on your SL lines… so I assume you wrote your own Bot which takes its value from the SL line, assume there is an event triggered when the line value changes which your bot responds to, and uses that value internally to watch the price, and issues the SL order when internally triggered ? Am I reading you correctly? Or perhaps you are setting the SL manually for individual trades on your VPS ?
Both. I wrote code that displays my own line on the charts, which I can drag, drop, and do everything else like you can with the normal SL/TP lines in cTrader.
I can move it manually; I can have a bot move it; again, just like the SL/TP lines in cTrader. :-)
@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