Topics
Replies

firemyst
22 Apr 2024, 17:50 ( Updated at: 23 Apr 2024, 05:47 )

You can write your own indicator to do this.


@firemyst

firemyst
22 Apr 2024, 17:50 ( Updated at: 23 Apr 2024, 05:47 )

If you had a total of 10 lots, how do you expect to have two take profits of 9 lots each? That in itself is 18, which is more than the 10 you have. 

 

If you want any help, then maybe you should try specifying what your order actually was and what the original lot amount was when you entered your position.


@firemyst

firemyst
22 Apr 2024, 17:46 ( Updated at: 23 Apr 2024, 05:47 )

This is not a suggestions forum

 

You need to post here:

https://ctrader.com/forum/suggestions

 

 


@firemyst

firemyst
21 Apr 2024, 09:05 ( Updated at: 22 Apr 2024, 05:35 )

Or you could write you own, and import the Python into your custom C#. Basic steps would be:

  1. Install the Python for . NET library: "pythonnet".
  2. In your C# code, import the "pythonnet" namespace.
  3. Use the "Py. Import" method to import your Python module.
  4. Use the "Py. ...
  5. Convert data between C# and Python using "PyObject" instances.

 

https://somegenericdev.medium.com/calling-python-from-c-an-introduction-to-pythonnet-c3d45f7d5232

 

 


@firemyst

firemyst
17 Apr 2024, 16:46 ( Updated at: 18 Apr 2024, 05:52 )

RE: RE: cTrader "pip scale" constantly goes flukey, and nowhere near being correct

PanagiotisCharalampous said: 

firemyst said: 

Hello Team @Spotware / @PanagiotisCharalampous

Any further updates on a fix for this issue?

Thank you

Hi firemyst,

We had no luck reproducing this issue therefore we cannot fix it at the moment.

Best regards,

Panagiotis

It's still doing this as of today, April 17th with version 4.8.30.

Doesn't the @Spotware team want to remote desktop and/or something else to get to the bottom of it? It's OBVIOUSLY an issue since I can reproduce it and have provided several videos showing it happening and can still reproduce the issue at will.

It happens when I switch between saved templates on an indicie (like the NAS 100) with a broker that has a pip size set at 0.1 points instead of 1 point on that indicie. 

 


@firemyst

firemyst
17 Apr 2024, 16:34

So no updates on this @Spotware?


@firemyst

firemyst
17 Apr 2024, 08:56 ( Updated at: 17 Apr 2024, 08:58 )

RE: RE: RE: RE: RE: RE: Heiken Ashi Candles

gbg561 said: 

firemyst said: 

gbg561 said: 

 

Hi, I thought there were only custom Heiken Ashi candles? where would I find the built in heiken ashi candles? Thanks

 

Thanks, but how do I get that into the code? 

 

Bars haTimeFrame = Bars.GetBars(TimeFrame.HeikinHour2);

//Now the time data is stored in the haTimeFrame variable. Put this in your “OnStart” or “Initialize” methods depending on whether you're writing a bot or indicator so it only gets the data once. If you put it in OnTick or Calculate, it's going to waste valuable CPU and network bandwith trying to reload the data on each tick.

 


@firemyst

firemyst
16 Apr 2024, 15:27 ( Updated at: 17 Apr 2024, 05:42 )

RE: RE: RE: RE: Heiken Ashi Candles

gbg561 said: 

 

Hi, I thought there were only custom Heiken Ashi candles? where would I find the built in heiken ashi candles? Thanks

 


@firemyst

firemyst
16 Apr 2024, 08:36 ( Updated at: 17 Apr 2024, 05:42 )

RE: RE: RE: Heiken Ashi Candles

PanagiotisCharalampous said: 

gbg561 said: 

firemyst said: 

Because that appears to be a custom indicator you are using… if you know how, you need to import them into your project or add them as a reference in Visual Studio.

Hi firemyst,

Thanks for your reply.

I am new to this, how would I import tem into my project?

Many thanks

Gary

Why do you need to use the custom indicator and not use the built in heikin ashi candles instead?

Maybe because they want to see the HA candles on a regular candle chart? I sometimes do the same thing.

There's also numerous indicators that do this as well as are quite popular.

For example:

https://www.tradingview.com/script/pjl3mIvc-Smoothed-Heiken-Ashi/

https://stonehillforex.com/2023/03/heiken-ashi-smoothed-as-a-confirmation-indicator/

 

 

 


@firemyst

firemyst
14 Apr 2024, 10:18

RE: RE: Sl and Tp and Breakeven Bot HELP!

Jonathangong12 said: 

PanagiotisCharalampous said: 

Hi there,

“Order Execution Error Nothing to change” means that the property you are trying to modify has the same value as the previous one.

Best regards,

Panagiotis

How can I fix it?

Don't modify your position if nothing has changed. So you have to write code to see if the current value is the same as it was before you try to modify it. You have to ask yourself if the time and effort you'll spend on that is really worth it just to remove the cTrader popup that happens.


@firemyst

firemyst
14 Apr 2024, 10:14

Because that appears to be a custom indicator you are using… if you know how, you need to import them into your project or add them as a reference in Visual Studio.


@firemyst

firemyst
03 Apr 2024, 01:13

What if you uninstall and reinstall cTrader?

 

If you uninstall everything, and then do a fresh install of cTrader, and it's still identified as being a virus, I'd say it's probably a “false positive” on Bitdefender's part.

To prove this theory, on another computer where you have BItdefender installed and have never installed cTrader, install cTrader from Spotware itself (spotware.com) there and see what happens. If BItdefender flags it, that's definitely Bitdefender identifying false positives.


@firemyst

firemyst
03 Apr 2024, 01:10

You need to speak to TFT


@firemyst

firemyst
02 Apr 2024, 09:34

RE: RE: Backtest Entry Price: Market Orders vs. Pending Orders

ncel01 said: 

firemyst said: 

Can you post any code that replicates the issue?

Along with a screen capture of your back testing parameters.

I can if this is confirmed to be an issue. Otherwise it will be pointless.

Well, if you can't present the details on how to accurately reproduce, I wouldn't be surprised if they say they can't reproduce and/or confirm it. 

And round and round it goes 


@firemyst

firemyst
02 Apr 2024, 00:24

Can you post any code that replicates the issue?

Along with a screen capture of your back testing parameters.


@firemyst

firemyst
30 Mar 2024, 04:43

if (order.TradeType == TradeType.Buy)
{
}

@firemyst

firemyst
29 Mar 2024, 02:07 ( Updated at: 29 Mar 2024, 06:29 )

This needs to go in the SUGGESTIONS forum:

https://ctrader.com/forum/suggestions

 


@firemyst

firemyst
25 Mar 2024, 02:26 ( Updated at: 25 Mar 2024, 06:43 )

If you need help, this is the wrong forum to post to.

 

This forum is for suggestions only.


@firemyst

firemyst
25 Mar 2024, 02:25 ( Updated at: 25 Mar 2024, 06:43 )

Is what possible? Your sentence makes no sense


@firemyst

firemyst
25 Mar 2024, 02:21 ( Updated at: 25 Mar 2024, 06:43 )

You've posted in the wrong forum.

 

https://ctrader.com/forum/suggestions

 


@firemyst