Topics
Replies

firemyst
27 Dec 2024, 00:17 ( Updated at: 27 Dec 2024, 07:34 )

If you want the best results for each month or day, you'll probably have to run the optimization for each individual month or day when selecting the date range. 


@firemyst

firemyst
25 Dec 2024, 08:15 ( Updated at: 27 Dec 2024, 07:34 )

Don't hold your breath waiting. They did it as dots because of the limitations of their system. 

While Spotware may implement a SuperTrend as a line with one color, unless they use the dots, they can't do up/down colors easily. I suspect they chose to do dots instead of a one color line since the ST usually has an “up” and “down” color. 

I agree with you that dots are pointless, which is why I wrote my own ST to have colored lines. 


@firemyst

firemyst
25 Dec 2024, 08:05 ( Updated at: 27 Dec 2024, 07:34 )

This has been requested numerous times over the years, and would be extremely helpful ! No idea why Spotware hasn't implemented this yet, or at least gives the users the option to display pips instead of dollars.

 


@firemyst

firemyst
25 Dec 2024, 08:02 ( Updated at: 27 Dec 2024, 07:34 )

Write your own indicator to do this.

All you have to do is print to the chart the property Symbol.Spread

Or download one that's already made:

https://community.ctrader.com/algos/indicators/show/3217/

https://clickalgo.com/spread-meter

https://clickalgo.com/spread-display-indicator

 


@firemyst

firemyst
23 Dec 2024, 23:44

Looks like this has been fixed in version 5.1.11

 

Thank you


@firemyst

firemyst
23 Dec 2024, 23:43

Looks like this has been fixed now in version 5.1.11

 

Thank you


@firemyst

firemyst
23 Dec 2024, 23:41

Visual Studio Code supports intelisense for .Net on Mac apparently. 

Just google “visual studio for mac” for download links.

I would suggest using that. Spotware isn't going to open up their API's.

 

 


@firemyst

firemyst
23 Dec 2024, 23:35

Hopefully it's resolved now if you're using the latest version 5.1.x ?


@firemyst

firemyst
23 Dec 2024, 01:22

For those of us who don't use Mac, can you post a screen capture showing an example of the differences?


@firemyst

firemyst
23 Dec 2024, 01:21

As a work around, you could always write your own log output to see if that meets your needs?

 

if ((position.TradeType == TradeType.Buy && Bars.ClosePrices[index1] < _ExitMA1.Result.LastValue) || (position.TradeType == TradeType.Sell && Bars.ClosePrices[index1] > _ExitMA1.Result.LastValue))
{
    ClosePosition(position);
    Print("Exit EMA 1 closed position. ClosePrice {0}, EMA Value {1}", Bars.ClosePrices[index1], _ExitMA1.Result.LastValue);
}


@firemyst

firemyst
23 Dec 2024, 01:10

This isn't unusual during the weekends when they're performing updates to system.

Are you still having issues?


@firemyst

firemyst
23 Dec 2024, 01:02

Depending on your business logic and requirements - yes.


@firemyst

firemyst
23 Dec 2024, 01:01

No, because the API documentation clearly states, “Shortcut for Robot.ModifyPosition method to change the Stop Loss.” and “ModifyPosition” is not asynchronous.

Also, all their current API calls that work asynchronously are labelled as being asynchronous, such as “ModifyPositionAsync” and “ModifyPendingOrderAsync”.

 

If you need/want to modify the stop loss asynchronously, you'll probably want to use “ModifyPositionAsync”. Yes, that means you're going to have to provide all the required parameters, which you should be able to gather most of the information from your current position. 

Ex:

var position = Positions.Find("myLabel", Symbol, TradeType.Buy);

if (position != null)
    ModifyPositionAsync(position, position.StopLoss.GetValueOrDefault() + (Symbol.PipSize * 10), position.TakeProfit); 

@firemyst

firemyst
18 Dec 2024, 06:33

Change their color?

By default the text is white:


@firemyst

firemyst
16 Dec 2024, 01:15

You need to post these in the suggestions forum.

Spotware doesn't come here looking for suggestions/improvements.


@firemyst

firemyst
16 Dec 2024, 01:13

The simple way to do it is:

 position.ModifyTrailingStop(true);

or

 position.ModifyTrailingStop(false);


@firemyst

firemyst
14 Dec 2024, 05:59 ( Updated at: 14 Dec 2024, 06:22 )

RE: RE: Error with Arrays - Beware!!

PhoenixCapital said: 

Perhaps, this is new. Older versions of ctrader didnt do this at all. I have been doing this for 2 years.

It has always been like this. This is how C# has been working since it was first introduced back in early 2000's - even before Spotware's time. 

If you want evidence, download a copy of Visual Studio 2015:

https://visualstudio.microsoft.com/vs/older-downloads/

Create a basic C# console application, set the .Net framework to either 2.0 or 3.5 (if possible) and put your code in there. 

:-)

 

 


@firemyst

firemyst
13 Dec 2024, 00:42 ( Updated at: 13 Dec 2024, 06:34 )

This is not a Spotware issue.

The solution is you need to better understand how arrays and objects are copied in C#.

When you say “prices = PriceList”, you're assigning the underlying reference of PriceList to prices, meaning whatever you change in one, changes in the other.

If you want to copy the actual values, you need to either:

  1. use a loop to copy each value in the array
  2. Google search and learn how to do it other ways, such as : https://stackoverflow.com/questions/14651899/create-a-copy-of-integer-array 

@firemyst

firemyst
13 Dec 2024, 00:31

Nearly 9 years on and since Spotware still hasn't provided this functionality, here's a suggestion if you don't program up your own, you can always do the math to compensate.

For instance, if you have a 20 period ema on the M1 chart, on the M30 chart change the period 600 (30 minutes * 20 period length on m1 chart)


@firemyst

firemyst
13 Dec 2024, 00:19

Definitely!

 

It should be a relatively easy transition/update since they already have version 6 supported.


@firemyst