How to make a Trend Indicator to bool?

Created at 26 Oct 2013, 18:30
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
OL

Old Account

Joined 14.10.2013

How to make a Trend Indicator to bool?
26 Oct 2013, 18:30


Hi

I was wondering how you maka a trend indicator to a bool value (if possible). 

So i could for example write :        

If(BullTrade=True)
Trade.CreateBuyMarketOrder(Symbol,Volume)

Thanks

 


@Old Account
Replies

jeex
28 Oct 2013, 09:05

Compare with what?

You would first compare the indicator with something. I.e. a breakout, of a rise or fall. Like:

if( BullTrade.IsRising...)

{

Trade.Create...

}

If you know what to compare it with, you get a boolean.


@jeex

Old Account
28 Oct 2013, 16:37

Thanks


@Old Account