Topics
Replies
firemyst
16 Jun 2023, 20:07
Why is this question posted under "Suggestions"?
This should be posted under
or
> To date it is not possible to modify volume for the position and/or direction.
It sure is. Please post your question in the other groups for an answer. This forum is for "suggestions", not "questions".
@firemyst
firemyst
13 Jun 2023, 17:09
RE: RE:
AlexFrei said:
firemyst said:
Have you tried Google?
No ! What it is ?
Have you tried to code anything for cTrader with its controls ?
Yes. And I've used external controls too like panels, checkboxes, etc, on my charts.
Spotware has plenty of examples on this website too:
@firemyst
firemyst
12 Jun 2023, 16:13
( Updated at: 21 Dec 2023, 09:23 )
Of course you're getting that error.
See what the API is expecting?
Not a double value, which you have as "0.001".
You need to pass it the "Bars" you want, or remove the first parameter entirely to use the current chart's bars.
@firemyst
firemyst
09 Jun 2023, 15:17
if (distance between current ask or bid price and current take profit price is within x-pips of yourposition.TakeProfit.GetValueOrDefault())
{
yourPosition.ModifyTakeProfitPrice( yourposition.TakeProfit.GetValueOrDefault() + (Symbol.PipSize * number of pips you want to move it forward);
}
@firemyst
firemyst
09 Jun 2023, 03:09
The code you have gets the EMA values for the Higher Time Frame, which is the daily chart.
The charts you're showing in the screen captures are the 4 hour charts.
So while on the GBPCHF 4-hour chart the fast email is below the slow ema, on the daily chart, the fast ema can still be above the slower ema, hence only the one arrow being displayed on the 4 hour.
@firemyst
firemyst
09 Jun 2023, 02:56
( Updated at: 21 Dec 2023, 09:23 )
RE:
jalmir.coelho@gmail.com said:
To load an Exponential average I use: Result = Indicators.Exponential Moving Average(Source, 8); How to load an Exponential Average with SHIFT according to the following image?
You can't do it directly with the API, which is a FAIL on Spotware's part (and whoever's in charge of the API team should be slapped for this). When needing the SHIFT parameter, Spotware's API includes it with other indicator api's like the Alligator, but not on the MA constructors where it's listed as a parameter. Who made this idiotic decision?
Anyway, the point being you have to do it yourself:
//Example to help you get started
[Parameter("Shift", DefaultValue = 0, MinValue = -100, MaxValue = 500)]
public int MAShift { get; set; }
public override void Calculate(int index)
{
//Do your own SHIFTing
int currentIndex = index + MAShift;
//Now get the shifted results from the moving average
Result[currentIndex] = _expMovingAverage.Result[index];
//the rest of your code
}
@firemyst
firemyst
17 Jun 2023, 05:48 ( Updated at: 21 Dec 2023, 09:23 )
Your watch list?
Since nobody else has spoken up, here's something you can try:
- using your default settings file. You can find it in a location similar to:
In that file has the listing of your watch lists.
If you open that file up in Notepad, Notepad++, or some other similar text editor, it will have binary characters in it, but it will also have the symbols in your watch list, listed out.
For example, here's part of my watch list:
@firemyst