FX Strategy Wizard Beta

Re: FX Strategy Wizard Beta

Valeria thank you for the key point in your post.

I see now that the strategy closes only positions that opened by the strategy itself.
If a position opened manually, the strategy is not able to close it.
There is no way to alter and correct this? or to code in a different way the close function?

I am sending you the project file.

Valeria wrote:Please check the Position Side, it should be the same as the open order side.

Posts: 4
Joined: Tue Mar 04, 2014 4:55 am

Re: FX Strategy Wizard Beta

Hello,
If I create "Stop" in custom parameters, is it possible to create a calculateable stop such as Stop=W1DATA.low ( 1 )....
or Stop = (W1DATA.high ( 1 ) - W1DATA.low ( 1 ))*.764 ) (The .764 Fib ratio.)
If so, where would I define the stop with such an equation? Expressions? Actions?

Other subject:
I have been using previous weekly highs and lows to create fib ratios in the strategy wizard. Is there a way to calculate swing highs and lows to calculate these ratios as are traditionally done?

Thank You
ThemBonez
FXCodeBase: Initiate

Posts: 126
Joined: Sat Mar 20, 2010 1:56 pm

Re: FX Strategy Wizard Beta

Hello ThemBonez,

I redirected your questions to our developers, I will let you know about solution.
Georgiy
FXCodeBase: Initiate

Posts: 151
Joined: Tue Jul 29, 2014 4:49 am

Re: FX Strategy Wizard Beta

Thank You. Just to mention, as price moves in the direction of the trade I would like stop to move accordingly based on the formula, i.e. for long trades, under consecutive swing lows, etc.
ThemBonez
FXCodeBase: Initiate

Posts: 126
Joined: Sat Mar 20, 2010 1:56 pm

Re: FX Strategy Wizard Beta

Hi,

I am trying to create my first strategy and I have two questions.

1) I need to create a conditional where I enter long only when Indicator (1) > Indicator (2). I have successfully created the formula but the strategy enter a new position each time a new candle is formed, I only want one position to be opened at a time. I have tried to solve this problem using the function countPositions () = 1, but the the formul its not valid. Can you please tell me waht I am doing wrong. I am not programmer.
Example: MVA100( 0 ) > MVA200( 0 ) .and. countPositions( ) = 1.

2) My other question is how can I create an expression such as the overbought and oversold RSI where I enter long when RSI crosses over 30 level and shot when RSI crosses under 70 lv. The function core.crossesOver( ) is valid if I want to compare two streams, but the RSI indicator only creates one stream.

Thx
jppineda224

Posts: 7
Joined: Sun Aug 31, 2014 11:13 pm

Re: FX Strategy Wizard Beta

Hi jppineda224,

1) I need to create a conditional where I enter long only when Indicator (1) > Indicator (2). I have successfully created the formula but the strategy enter a new position each time a new candle is formed, I only want one position to be opened at a time. I have tried to solve this problem using the function countPositions () = 1, but the the formul its not valid. Can you please tell me waht I am doing wrong. I am not programmer.
Example: MVA100( 0 ) > MVA200( 0 ) .and. countPositions( ) = 1.

I guess that the cause of the issue is in the formula. The issue is reproduced if use " = ". And all works correctly if use " = = ".

Please try to use " = = " and let me know whether the issue is solved or not.

2) My other question is how can I create an expression such as the overbought and oversold RSI where I enter long when RSI crosses over 30 level and shot when RSI crosses under 70 lv. The function core.crossesOver( ) is valid if I want to compare two streams, but the RSI indicator only creates one stream.

Please try to use the function which is shown below:
Valeria

Re: FX Strategy Wizard Beta

Hi Valeria
Problem solved, Thank You!
jppineda224

Posts: 7
Joined: Sun Aug 31, 2014 11:13 pm

Re: FX Strategy Wizard Beta

Hi,
I would like to incorporate fibonacci ratios into a strategy I am creating with the Strategy WIzard. In order to do this, I need to be able to utilize the last swing highs and lows to generate the ratios. I was told to find these highs and lows, I need to use "min" and "max" for a chosen period. Is it possible to utilize these lua commands in the Strategy Wizard. If not, is there another way to determine swing highs and lows in Strategy Wizard?
Thank you
ThemBonez
FXCodeBase: Initiate

Posts: 126
Joined: Sat Mar 20, 2010 1:56 pm

Re: FX Strategy Wizard Beta

Hi ThemBonez,

ThemBonez wrote:Hi,
I would like to incorporate fibonacci ratios into a strategy I am creating with the Strategy WIzard. In order to do this, I need to be able to utilize the last swing highs and lows to generate the ratios. I was told to find these highs and lows, I need to use "min" and "max" for a chosen period. Is it possible to utilize these lua commands in the Strategy Wizard. If not, is there another way to determine swing highs and lows in Strategy Wizard?
Thank you

I have forwarded your questions to our developers. I will let you know about their suggestion tomorrow.
p_maltsev

Re: FX Strategy Wizard Beta

Hi ThemBonez,

Unfortunately, FX Strategy Wizard does not have the ability to search min and max price for the specified period. However, Indicore SDK has mathex.minmax method which can find the minimal and the maximal values. You can use this method in your strategy.
p_maltsev

PreviousNext