Create and Test Forex Strategies
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
fsbpro_guide:logical_gropus [2014/10/23 13:43] – Links to fsbpro:manual:opening_point_of_the_position changed to fsbpro_guide:opening_point_of_the_position Miroslav Popov | fsbpro_guide:logical_gropus [2014/10/26 04:26] – Miroslav Popov | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Logical Groups ====== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | A Logical group is a group of indicators representing logical conditions. All [[opening_logic_condition]] and [[closing_logic_conditions]] indicators represent logical conditions and belongs to logical groups. | ||
+ | |||
+ | For example, a RSI indicator with a logic rule "RSI rises" represents a logical condition that is true when the indicator rises for a given bar and false in the other case. Therefore, RSI will be joined to a logical group. | ||
+ | |||
+ | [[opening_point_of_the_position]] and [[closing_point_of_the_position]] indicators do not belong to logical groups because they do not represent logical conditions. | ||
+ | |||
+ | The logical groups are identified by symbols. The " | ||
+ | |||
+ | Every logical group has a symbol and every " | ||
+ | |||
+ | When you add a new " | ||
+ | |||
+ | Every new " | ||
+ | |||
+ | " | ||
+ | |||
+ | Forex Strategy Builder Professional does not show a logical group symbol of a slot if it has a default value. If the logical group was changed, the program will show it in square brackets at the right side of the slot panel. | ||
+ | |||
+ | You can see the logical group of a slot in the Advanced area of the Indicator options pane, on the dynamic info that appears when you hold the mouse cursor over a slot or at the slot panel when zoom it in. | ||
+ | |||
+ | A logical group represents a logical condition. You can think for a logical group as one aggregated indicator. A logical group returns true when all indicator' | ||
+ | |||
+ | ==== Using logical groups for opening ==== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Looking at the example above, all opening conditions belongs to group [A]. Therefore, the logical result of group [A] will be " | ||
+ | |||
+ | <wrap hi>A strategy sends an entry order when there is at least one satisfied opening logical group.</ | ||
+ | |||
+ | You can use logical groups when you want to define different opening conditions. | ||
+ | |||
+ | The above strategy has two logical groups for entry - [A] and [B]. (Group [A} is not shown because it is the default one.) This strategy can open position when group [A] as well as group [B] is satisfied. | ||
+ | |||
+ | You can set several indicators in one group. | ||
+ | |||
+ | ==== Using logical groups for closing ==== | ||
+ | |||
+ | <wrap hi>A strategy sends close signals when there is at least one closing conditions group satisfied.</ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Forex Strategy Builder Professional sets different logical groups for each closing condition indicator by default. In that way the program closes a position at the first dangerous event. If a strategy has two closing conditions, they will belong to two different logical groups by default. | ||
+ | |||
+ | The strategy shown to the right has two closing conditions. They are set to group [a] and group [b] by default. The program hides the group symbols because they were not changed. This strategy sends closing signal at Bar Closing when "RSI is higher the Level line" as well as when " | ||
+ | |||
+ | If you want to close a position only when both closing conditions are satisfied simultaneously, | ||
+ | |||
+ | ==== " | ||
+ | |||
+ | An indicator marked with " | ||
+ | |||
+ | Some indicators have group " | ||
+ | |||
+ | Examples of indicators with default group " | ||
+ | * "Lot Limiter" | ||
+ | * "Long or Short" - allows either Long entry or Short entry. | ||
+ | * "Day of Week" - allows entry on a specific day of week. | ||
+ | |||
+ | ==== Logical groups example ==== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | You can make various complex logic by using logical groups. | ||
+ | |||
+ | For example a strategy that buys at Bar Open on Monday, Tuesday and Wednesday. It sells at Bar Open on Thursday and Friday. The strategy closes the last lot on Friday evening. | ||
+ | |||
+ | - Open a new strategy; | ||
+ | - Set Strategy Properties: Entry amount to 1 lot, allow adding 1 lot, allow reducing 1 lot | ||
+ | - Set " | ||
+ | - Add "Long or Short" with rule "Open long only" and logical group [A] | ||
+ | - Add "Day of Week" with entry from Monday to Thursday (excluding), | ||
+ | - Add "Long or Short" with rule "Open short only" and logical group [B] | ||
+ | - Add "Day of Week" with entry from Thursday to Saturday (excluding), | ||
+ | - Set " | ||
+ | |||
+ | This strategy uses two logical groups for entry. It will open position when at least one of the groups permits but we designed the indicators in a way that the groups will allow entries in different days and in different direction. | ||
+ | * The first group [A] allows long entry on Monday, Tuesday and Wednesday. | ||
+ | * The second group [B] allows short entry on Thursday and Friday. | ||
+ | |||
+ | Actually the first signal on Monday will open a new position. The second long signal on Tuesday morning will add one lot because we allowed Adding in the Strategy Properties. The strategy will add 1 lot also on Wednesday. On Thursday morning group [A] will not be satisfied, but group [B] will send a sell signal. Since we already have a 3 lots long position, the sell signal appears to be an " | ||
+ | Finally, the strategy will close the position on Friday evening because it will reach the exit point - "Week Closing" | ||
+ | |||
+ | You can download this strategy from our Code Repository [[http:// | ||