forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Software

Create and Test Forex Strategies

You are not logged in. Please login or register.


Forex Software → Technical Indicators → Custom Bollinger Band Indicator(entry at bar closing)

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 2

Topic: Custom Bollinger Band Indicator(entry at bar closing)

Hi

I seem to be having problems creating a custom bollinger band incicator. I copied the original one and amended some parts. Basically, what I am after is an option to open a trade, above a bar that closes above the upper band (if the previous bar closes below the upper band). However, there seem to be no 'bar closing' options on the original one-just 'bar opening' ones

I have changed some of the wording from 'opens' to 'closes' and from 'opening' to 'closing', but get the following error when I reload sb:

Custom Indicators
File name: ose_Bollinger Bands.cs
ERROR: Indicator compilation failed in file [ose_Bollinger Bands.cs]
     Line 306 Column 131: 'Forex_Strategy_Builder.BandIndLogic' does not contain a definition for 'The_bar_closes_above_the_Upper_Band_after_closing_below_it'.

Would you know how this can be done?

Re: Custom Bollinger Band Indicator(entry at bar closing)

I have changed some of the wording from 'opens' to 'closes' and from 'opening' to 'closing', but get the following error when I reload sb:

You cannot do this. This option is part of enumeration:

/// <summary>
/// Band Indicators Logic
/// </summary>
public enum BandIndLogic
{
    The_bar_opens_below_the_Upper_Band,
    The_bar_opens_above_the_Upper_Band,
    The_bar_opens_below_the_Lower_Band,
    The_bar_opens_above_the_Lower_Band,
    The_position_opens_below_the_Upper_Band,
    The_position_opens_above_the_Upper_Band,
    The_position_opens_below_the_Lower_Band,
    The_position_opens_above_the_Lower_Band,
    The_bar_opens_below_the_Upper_Band_after_opening_above_it,
    The_bar_opens_above_the_Upper_Band_after_opening_below_it,
    The_bar_opens_below_the_Lower_Band_after_opening_above_it,
    The_bar_opens_above_the_Lower_Band_after_opening_below_it,
    The_bar_closes_below_the_Upper_Band,
    The_bar_closes_above_the_Upper_Band,
    The_bar_closes_below_the_Lower_Band,
    The_bar_closes_above_the_Lower_Band,
    It_does_not_act_as_a_filter
}

It is used in BandIndicatorLogic function: http://forexsb.com/library/source/Band- … Logic.html

Posts: 2

Pages 1

You must login or register to post a reply

Forex Software → Technical Indicators → Custom Bollinger Band Indicator(entry at bar closing)

Similar topics in this forum