Replies

jackhpfilerrowson
22 Feb 2021, 22:32

RE:

PanagiotisCharalampous said:

Hi jackhpfilerrowson,

You should use Bars.LowPrices.Last(1).

Best Regards,

Panagiotis 

Join us on Telegram

Hi Panagiotis,

Thanks for the reply. I've tried that too but the bot still seems to execute the order at the open of the next bar. Also i there a way to set the SL as the High of the last bar and to determine the TP distance from the ATR?

Many thanks


@jackhpfilerrowson

jackhpfilerrowson
27 Jan 2021, 00:18

RE: RE:

Thanks for the reply Prosteel1, Ill give that a go

 


@jackhpfilerrowson

jackhpfilerrowson
23 Jan 2021, 14:06

RE:

firemyst said:

As the error message says, why do you think there's a property called "Result"?

There clearly isn't one, so you'll have to figure out what property you need to reference to get the latest value. Not every indicator has a "Result" field nor is it required to.

 

So the best way to tackle this problem is change the line from "Ema.Result.LastValue" to just "Ema". Once you have that, type the period "." to see if any properties show up. Then you'll have to pick from the list if they do.

If they don't, you need to either be able to see the source code to see what the property is, read the documentation, or get in contact with the indicator's author.

Thanks. Looking back at my indicator I had used Resultema instead of Result


@jackhpfilerrowson

jackhpfilerrowson
21 Jan 2021, 12:36

RE:

firemyst said:

Here is some sample code off the top of my head on how to reference another symbol within the current one:

 

Symbols.GetSymbol(MarketData.GetBars(Bars.TimeFrame, "GBPUSD").SymbolName);

 

Thanks, ill give it a go 


@jackhpfilerrowson

jackhpfilerrowson
20 Jan 2021, 04:01

RE:

jackhpfilerrowson said:

Hi, just wondering if there is a way to add a moving average onto my ATR indicator?

Thanks.

No worries, figured it out.


@jackhpfilerrowson

jackhpfilerrowson
23 Dec 2020, 18:27

RE:

PanagiotisCharalampous said:

Hi jackhpfilerrowson,

Try smtp instead of smpt.

Best Regards,

Panagiotis 

Join us on Telegram

Hi Panagiotis

I just tried that and its still saying its failed to send an email in the log.

Thanks for your time,

Jack


@jackhpfilerrowson

jackhpfilerrowson
22 Dec 2020, 00:18

RE:

PanagiotisCharalampous said:

Hi jackhpfilerrowson,

Which trades are you referring to? 

Best Regards,

Panagiotis 

Join us on Telegram

No worries, it was just my poor coding all fixed now. Thanks for your help above


@jackhpfilerrowson

jackhpfilerrowson
18 Dec 2020, 17:02

Thanks that works great. Any idea as to why it has changed the number of trades from 583 to just 1 however?

Thanks for your time, Jack.


@jackhpfilerrowson

jackhpfilerrowson
18 Dec 2020, 15:31

RE:

PanagiotisCharalampous said:

Hi jackhpfilerrowson,

Can you be more specific? Give us an example of how do you expect this to work.

Best Regards,

Panagiotis 

Join us on Telegram

Thanks for the reply. 

So say my account balance is £10,000 and I want a trade to use 2% of this multiplied by my leverage for a trade (£10,000*0.02*500 for example). And then the next trade would have a different volume based on the same logic but new account balance. 

Let me know if you need me to clarify further, much appreciated. 


@jackhpfilerrowson

jackhpfilerrowson
18 Dec 2020, 02:24

RE:

PanagiotisCharalampous said:

Hi jackhpfilerrowson,

There are a lot of sample cBots that come preinstalled with cTrader and will give you an idea. Check for example Sample RSI cBot.

Best Regards,

Panagiotis 

Join us on Telegram

Thanks, have managed to use them to figure it out

 


@jackhpfilerrowson