SE
Topics
Forum Topics not found
Replies
Sendgate
27 Sep 2022, 10:06
RE:
mindfulness said:
Sendgate said:
Quick glanced... Change & to &&?
& is a bitwise operand, && is a logical operandJust give it a try, but makes no difference. Not sure, but i think it´s a mistake regarding converting the "len" from the former script to C# Calgo.
Well it really should make a difference in the logical query.
I suggest you try to use the debugger to se your code working. You can download a free, community edition, of Visual Studio and get going :)
Cheers
This is the correct syntax:
var kyushu_bullish = ((kyushu_d_bullish || kyushu_h4_bullish) && (kyushu_h1_bullish && kyushu_m30_bullish && kyushu_m15_bullish && kyushu_m5_bullish));
var kyushu_bearish = ((kyushu_d_bearish || kyushu_h4_bearish) && (kyushu_h1_bearish && kyushu_m30_bearish && kyushu_m15_bearish && kyushu_m5_bearish));
@Sendgate
Sendgate
25 Dec 2022, 12:50
RE:
Hi,
Since Tick data is the most accurate data source when back-testing it is most probably so that your cBot will not be profitable.
BR
@Sendgate