Topics
Replies

firemyst
14 May 2023, 10:36 ( Updated at: 21 Dec 2023, 09:23 )

RE:

swansonconfidential said:

Very interesting, thank you!!

Have you tried it out? I would be really interested to hear if you saw much improvement from implementing this!

Also, does this mean it only work with Nvidia Graphics cards? Mine is AMD.

Thanks again!

It's a setting in Windows, so try it and see for yourself if it works for AMD and if so, how much of an improvement you see.

Also when running your next back test, right-click on your Windows task bar, select "task manager", and watch the GPU usage if it changes at all:


@firemyst

firemyst
14 May 2023, 10:33

What error messages, if any, do you receive?

Have you tried putting lots of Print statements through your code to see what values are written in the logging tab?

Ex:



Print("LSH {0}, SA {1}", lastSwingHigh, Symbol.Ask);

if (!double.IsNaN(lastSwingHigh) && Symbol.Ask < lastSwingHigh)
            {
                double takeProfitPrice = Math.Max(zigzag.SwingLow.Last(2), zigzag.SwingLow.Last(3));

Print("TPP: {0}, {1}, {2}", takeProfitPrice, zigzag.SwingLow.Last(2), zigzag.SwingLow.Last(3));

                if (double.IsNaN(takeProfitPrice))
                    return;

                double takeProfitPips = (int)((lastSwingHigh - takeProfitPrice) / Symbol.PipSize) * RiskRewardRatio;
                double stopLossPips = (int)((lastSwingHigh - Symbol.Ask) / Symbol.PipSize);

Print("TPP {0}, SLP {1}", takeProfitPips, stopLossPips);

                ExecuteMarketOrder(TradeType.Sell, SymbolName, 1000, "SwingZigZagStrategy", stopLossPips, takeProfitPips);
            }

 


@firemyst

firemyst
14 May 2023, 10:22 ( Updated at: 21 Dec 2023, 09:23 )

If you are running cTrader on a native Windows machine with an Nvidia gfx card, then you can try setting Windows to use the GPU more instead of the CPU in Windows:


@firemyst

firemyst
14 May 2023, 10:19

Try the solution in this thread to clear the local cache in cTrader:

 

Your same issue was happening to me.


@firemyst

firemyst
14 May 2023, 10:16 ( Updated at: 21 Dec 2023, 09:23 )

RE:

dynamites said:

Hello.

It would be great to have immediately an idea of the total amount of a combination of trades. This helps the trader to make a decisions to close or not.

Moreover, a button in the dropdown list like "select all" and "deselect all" would be paramount, especially if you scalp like me.

When you have a long list of open trades, the trade management in cTrader is quite "painful" to say the least...

There are some options available to you in the drop down menu:


@firemyst

firemyst
14 May 2023, 10:13

RE:

mh17462 said:

In which part of the website can I see a list of all the brokers who are working with you?

 

Well, for starters, if you really need this information, you could have:

1) looked on Spotware's website for a list of brokers:

2) used Google. "ctrader brokers list". Returns numerous pages. Here's one:

 

That took less than 5 minutes to do and should give you enough to go on.

 


@firemyst

firemyst
11 May 2023, 11:13

RE:

ncel01 said:

firemyst,

I can confirm the same discrepancy between cTrader desktop and cTrader mobile.

:

:

After all, as desired, you're able to sort all the trades in history, right?

 

 

Either way, it's a bug in how it operates, and I would hope @Spotware would want to fix it since their product is not working as expected.

 

 


@firemyst

firemyst
11 May 2023, 05:08

You can use it to gauge the strength/weakness of the indicator's trend.

Note that the angle can change depending on the zoom level of the chart


@firemyst

firemyst
11 May 2023, 05:05

What's the problem? Eg, why do you think it doesn't work?

Also, are you aware cTrader has HA candles built in, so you don't have to calculate them yourself -- just pass in the market data by choosing the appropriate timeframe. That is, Timeframe.HeinkinDay, etc.


@firemyst

firemyst
11 May 2023, 03:24 ( Updated at: 21 Dec 2023, 09:23 )

RE:

ncel01 said:

Hi firemyst,

Yes, it still can make sense.

As far as I can see, there is no mention to ascending/descending in cTrader desktop. This means that, most likely, what you consider to be a descending order has been defined as an ascending order.

This makes sense if the criteria is, for instance, the elapsed time between the closing and current times.

Ascending / Descending is right here on the column headings in cTrader desktop. Click on any column heading and it shows you how it's sorted

click on the heading again to reverse the sorting:

 

It's practically a universal standard that when you want date/times in descending order, it means you go from the most recent to the least recent, as showing in cTrader desktop:

 

And in any SQL database when you say, "SELECT * FROM myDatabase ORDER BY aDateTimeColumn DESC" any database will return the values sorted by "aDateTimeColumn" with the most recent date/timestamp first and continuing until the record with the oldest date/timestamp is last in the results.

So seeing how cTrader mobile is working, I suspect when @Spotware applies the filter, they mixed up ASC vs DESC in their data query.


@firemyst

firemyst
11 May 2023, 02:43 ( Updated at: 21 Dec 2023, 09:23 )

RE: RE:

ncel01 said:

Hi firemyst,

Did you try the filter (3 dots at the top right corner)?

 

I did. And actually, because of your suggestion, I went back and scrutinized it. It looks like there's a BUG between the cTrader desktop sorting and the cTrader mobile sorting, which is why I couldn't get it to work.

Follow the screen captures from my demo account:

Here is cTrader Desktop sorted, as you can see, by closing time in DESCENDING ORDER. This is what I expected to see in cTrader mobile as well:

Now when I view my "history" on cTrader mobile sorted closing time in DESCENDING ORDER, you'll see completely different results:

 

Now if I set the cTrader Mobile history filter to sort by closing time ASCENDING, look at the results -- they are the same as cTrader desktop when sorted in DESCENDING order:

 

See the difference? Does it work like this for anyone else?

To me, this is a bug. Sorting by Closing Time DESCENDING should show the exact same results in both cTrader Desktop and Mobile.

@Spotware?

 


@firemyst

firemyst
09 May 2023, 12:30

You are indeed :-)

To get the values from the indicator, you need to call the indicator's "calculate" method. This can done by either of the following:

1) Call the Calculate method directly and pass in the index number

2) call the ".Last(x)" method on your indicator automatically calls the "Calculate" method to retrieve the values.

and you need to call the Calculate method before you use any of the resulting values.

If you don't do either, the indicator doesn't run (it's the 'lazy loading') and sits idle.


@firemyst

firemyst
09 May 2023, 03:06

Just remove the "OUTPUT" directive and keep it as a "public" property.

 

For example, instead of this:

 [Output("Referenced SMA Output")]
 public IndicatorDataSeries refSMA { get; set; }

 

Make it this. Note that when doing it this way you will have to do a CreateDataSeries() in the Initialize method:

public IndicatorDataSeries refSMA { get; set; }

@firemyst

firemyst
09 May 2023, 03:03

If you need a work around, you can write your own indicator that combines the two into a single indicator area below the chart.

 

Also, you might want to do a search in the indicator archives to see if someone's already created one:

 


@firemyst

firemyst
07 May 2023, 14:22

RE: RE: RE:

meeting.chegini said:

firemyst said:

meeting.chegini said:

Hello
How do I know the name of the indicator in the IndicatorAreas?

For example, What is the name of the Chart.IndicatorAreas[0] indicator?

Try something like this:

Chart.IndicatorAreas[0].Objects[0].Name

Because each indicator area can have more than 1 object in it, you'll have to loop through all the objects to get all their names.

I don't want this!!

I want a code that gives me the name of the oscillator

 

I just gave you the general code above on what you have to do.

It's up to you to implement depending on the rest of your code.

I'm not going to write everything for you.

 


@firemyst

firemyst
05 May 2023, 17:49

RE:

meeting.chegini said:

Hello
How do I know the name of the indicator in the IndicatorAreas?

For example, What is the name of the Chart.IndicatorAreas[0] indicator?

Try something like this:

Chart.IndicatorAreas[0].Objects[0].Name

Because each indicator area can have more than 1 object in it, you'll have to loop through all the objects to get all their names.


@firemyst

firemyst
05 May 2023, 17:44

RE:

Samm193 said:

Dear All,

Can somebody help me with following. 

I have added Machine learning to my bot in Visual studio. 

When building the code into Ctrader, I get following error: 

 

Package Microsoft.Ml isn't supported

How can I solve it?

 

Thank you,

 

Step 1: Google the error message.

Step 2: Read the first response -- should be from GitHub - and try it.

 

 


@firemyst

firemyst
05 May 2023, 02:51 ( Updated at: 21 Dec 2023, 09:23 )

RE:

direcciongp said:

I select the + button in the watchlist menu and a search window opens, I type in a stock or a symbol (for example, Tesla or TSLA) and it doesn't work.

I

 

Works for me:

Then I left-clicked on "Tesla_Inc_(TSLA.O) and it was added:

 

Try making sure when you click on the symbol, you do a long left click to make sure you're clicking on it and it takes .


@firemyst

firemyst
04 May 2023, 14:09

RE:

PanagiotisChar said:

Hi firemyst,

I have no insight into the decision making process. I just explain how it works :) 

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

I know. All's good. I'm not pointing fingers or anything at you :-)

I just can't believe some of the decisions Spotware makes at times. Almost every other app has developers that give users the choice of using a light, dark, or default system theme for using their software on mobile devices. Why Spotware decided to not do this as well (since they already had it as an option for charts) is just mind boggling.


@firemyst

firemyst
04 May 2023, 11:13

RE:

PanagiotisChar said:

Hi firemyst,

The new theme feature is set on the device level. So you need to set your device's theme as dark for cTrader to switch to dark mode.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 

Thanks @PanagiotisChar

Why did they change it to the device level??

Other apps allow us to set "light", "dark", or "device default" in their settings. How come @Spotware couldn't do that with cTrader?

Like writing emails, most people have those apps in light mode; now I want to use cTrader with dark charts... I gotta switch over the entire phone? They couldn't even leave the option at the chart level?

*insert face palm emoji*


@firemyst