forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Forum

Forex Software, Forex Strategies, Expert Advisors Generator

You are not logged in. Please login or register.


Forex Forum → Help and Support → Logic order

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 22

1 (edited by muplayer2000 2015-05-21 06:14:48)

Topic: Logic order

Been fiddling with forexsb for my articles research on different strategy builders.

How do you add this logic in forexsb:

Moving average falls below 25 trigger a buy stop order above the signal bar and a sell stop order below it 
Once one of the stop order is triggered, cancel the other one.

Much appreciated

Re: Logic order

Use one of the "band" indicators for entry. If you select "Enter long at the upper band" they will act as stop entry orders. If you select "Enter long at the lower band" they will act as limit entry orders.

3 (edited by muplayer2000 2015-05-21 06:25:36)

Re: Logic order

Thank you for the fast reply

Could  you post a screenshot  please as you have described below.

Popov wrote:

Use one of the "band" indicators for entry. If you select "Enter long at the upper band" they will act as stop entry orders. If you select "Enter long at the lower band" they will act as limit entry orders.

Re: Logic order

Just set any of the following indicators in the "Opening Point of the Position" slot:
- Price Move, Ross Hook, Round Number, Starc Band, Steady Band, Top Bottom Price, Bollinger Bands, Donchin Channel....

Any entry indicator that specifies two entry prices - one for long and one for short predetermines two entry orders. Depending on the band you enter long, the orders are stop or limit. However, these indicators do not set actual pending orders but wait for the market to reach the predefined level and executes a market order.

5 (edited by muplayer2000 2015-05-21 08:09:37)

Re: Logic order

Is this correct i posted 2 images for this logic

trigger a buy stop order above the signal bar

? Little confused as this seem to divert slightly from the opening logic i described  so i am unsure.

Also those 2 parameter : Margin  point and MA period , can you explain their purpose and function in regard to the visual image i have uploaded?

Will be nice to have a visual screenshot demonstrating how you would add the logic i described in this post, just so others could also use it in the future as a template.



Regards



Popov wrote:

Just set any of the following indicators in the "Opening Point of the Position" slot:
- Price Move, Ross Hook, Round Number, Starc Band, Steady Band, Top Bottom Price, Bollinger Bands, Donchin Channel....

Any entry indicator that specifies two entry prices - one for long and one for short predetermines two entry orders. Depending on the band you enter long, the orders are stop or limit. However, these indicators do not set actual pending orders but wait for the market to reach the predefined level and executes a market order.

http://s12.postimg.org/z7nlayqp5/logic1.jpg
http://s15.postimg.org/4r6xj11yv/Logic2.jpg

Post's attachments

logic1.jpg 71.89 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Logic order

Basically

this is the logic i am trying to implement in forexsb

Go long logic:

price makes a higher swing high or price rose and broke above a swing high while above the 200-period EMA
RSI falls below 30 trigger a buy stop order above the signal bar and a sell stop order below it 
Once one of the stop order is triggered, cancel the other one.

Then place stop loss just below the low of the signal bar

Re: Logic order

If swing highs are in play, better to use Fractal indi, just my opinion.

Re: Logic order

Could you post a screenshot of the logic i described above?

footon wrote:

If swing highs are in play, better to use Fractal indi, just my opinion.

Re: Logic order

Nothing fancy, here you are:

http://s23.postimg.org/ekuacb2on/fract.jpg

10 (edited by muplayer2000 2015-05-21 14:09:38)

Re: Logic order

Thanx but I am actually asking for the screenshots of  each opening logic condition for the strategy within the editor that i described in my post  not a screenshot of the indicators in the charts . Once i have that i will have a clear idea and can also use those screenshots for future references.

Attached pic of swing high

footon wrote:

Nothing fancy, here you are:

http://s23.postimg.org/ekuacb2on/fract.jpg

http://s1.postimg.org/t1ff6lqnf/swinghigh.jpg

11 (edited by footon 2015-05-21 14:18:30)

Re: Logic order

I have high fractals on my screenshot as well. I edited it:

http://s30.postimg.org/qwkxb8c7h/fract.jpg

Maybe it will be even better to use Donchian Channel, like a n-bar fractal, constitutes a swing high by period, although if price stagnates a lot, it can cause slight problems. Testing will show, definitely!
Actually there has to be a Recent Swing High/Low custom indicator somewhere, made by a user I don't remember, I think he was from Colombia, maybe it's in the repo, will search if I can find it.

EDIT: excellent news! I found it! It's here  forexsb.com/repository/repository_indicators/forex_indicator_review/83/recent-swing-high-low

As the saying goes, knock yourself out! Have fun!

12 (edited by muplayer2000 2015-05-21 14:43:17)

Re: Logic order

Are you able to add the screenshots i asked in my previous message with the steps?

I am also surprised swing high low indicator has not been included in Forexsb list of indicator by default.

footon wrote:

I have high fractals on my screenshot as well. I edited it:

http://s30.postimg.org/qwkxb8c7h/fract.jpg

Maybe it will be even better to use Donchian Channel, like a n-bar fractal, constitutes a swing high by period, although if price stagnates a lot, it can cause slight problems. Testing will show, definitely!
Actually there has to be a Recent Swing High/Low custom indicator somewhere, made by a user I don't remember, I think he was from Colombia, maybe it's in the repo, will search if I can find it.

EDIT: excellent news! I found it! It's here  forexsb.com/repository/repository_indicators/forex_indicator_review/83/recent-swing-high-low

As the saying goes, knock yourself out! Have fun!

Re: Logic order

We cannot post a screenshot of  a strategy because your trading rules are not precise.

What does it means "If MA drops below 25"? This is not look as a strategy rule but as a condition for a single order.

I am also surprised swing high low indicator has not been included in Forexsb list of indicator by default.

What is that indicator? Is it included in the MT4 indicators list?

Footon is right that you can use Fractal instead of it.

http://s28.postimg.org/7ekupz45l/screenshot_917.jpg

14 (edited by muplayer2000 2015-05-21 15:43:19)

Re: Logic order

Perhaps i have not described clearly , ignore first message i couldn't edit it , forum edit option is disabled after 15-30min.

The strategy is simple :

Logic condtion rule for Long:
1)price makes a higher swing high or price rose and broke above a swing high above the 200-period EMA
2)RSI falls below level line 30
3)trigger a buy stop order above the signal bar
4)Then place stop loss just below the low of the signal bar
5))Cancel order if not triggered by the next bar

I hope this is clear


http://s12.postimg.org/z0kb7hijt/swinghigh2.jpg

Re: Logic order

You can set the indicators like that:

[Opening Point of the Position]
     Fractal
     Enter long at Up Fractal
     Visibility  -  Visible
     Vertical shift  -  0

[Opening Logic Condition]
     Moving Average
     The position opens above Moving Average
     Smoothing method  -  Simple
     Base price  -  Close
     Period  -  200
     Shift  -  0
     Use previous bar value  -  Yes

[Opening Logic Condition]
     RSI
     RSI is lower than the Level line
     Smoothing method  -  Smoothed
     Base price  -  Close
     Smoothing period  -  14
     Level  -  30
     Use previous bar value  -  Yes


However, when the price is above MA200, RSI may not be below 30.
It looks like: if you are in Greece and it is August and the temperatures is below zero...
Where: Greece stands for Up Fractal
and August = price is above MA200
and Temperature below zero means oversold market - RSI < 30

Re: Logic order

Swing High is very similar to  Up Fractal

Re: Logic order

muplayer2000 wrote:

Basically

this is the logic i am trying to implement in forexsb

Go long logic:

price makes a higher swing high or price rose and broke above a swing high while above the 200-period EMA
RSI falls below 30 trigger a buy stop order above the signal bar and a sell stop order below it 
Once one of the stop order is triggered, cancel the other one.

Then place stop loss just below the low of the signal bar

You have to take it to pieces. Copy-pasting stuff together is easy but results in gibberish. Take it to smallest actions as possible, then start defining what you are trying to do in a logical manner, step by step. You should have an understanding by now how to put a strategy i.e logic together in FSB, so when you have the steps, you can start building your strat and ask understandable questions, furthermore, you can see discrepancies or logical errors in strategy layout, which can then be dealt with. Subjective and discretionary systems are not translatable into mechanical systems by flick of a switch, it needs work and compromises, and more importantly a clear understanding what it is one is trying to achieve.
Hope this helps.

Re: Logic order

Oh, I see you are progressing on it! Very good!

19 (edited by muplayer2000 2015-05-21 16:03:25)

Re: Logic order

Thank you for the clear explanation. Everything is clear.

Though 1 thing missing how do we add this stop loss:
4)Place stop loss just below the low of the signal bar

Popov wrote:

You can set the indicators like that:

[Opening Point of the Position]
     Fractal
     Enter long at Up Fractal
     Visibility  -  Visible
     Vertical shift  -  0

[Opening Logic Condition]
     Moving Average
     The position opens above Moving Average
     Smoothing method  -  Simple
     Base price  -  Close
     Period  -  200
     Shift  -  0
     Use previous bar value  -  Yes

[Opening Logic Condition]
     RSI
     RSI is lower than the Level line
     Smoothing method  -  Smoothed
     Base price  -  Close
     Smoothing period  -  14
     Level  -  30
     Use previous bar value  -  Yes


However, when the price is above MA200, RSI may not be below 30.
It looks like: if you are in Greece and it is August and the temperatures is below zero...
Where: Greece stands for Up Fractal
and August = price is above MA200
and Temperature below zero means oversold market - RSI < 30

Re: Logic order

Cheers mate, forum wouldn't let me edit the first few posts

footon wrote:

Oh, I see you are progressing on it! Very good!

Re: Logic order

4)Place stop loss just below the low of the signal bar

You cannot do it in FSB. Use some of the other exit options.

22 (edited by muplayer2000 2015-05-21 16:50:57)

Re: Logic order

I require something equivalent hence stop loss below signal bar is the  best suited logical exit point. This is really the only way to get a decent risk reward ratio for the strategy. Using Hard Stop in a dynamic market doesn't make much sense and is not suitable  .

Is there any alternative ? Because This is a heavy handicap limitation for serious strategies.

Also how come this can not be done in FSB? Coding issue?



Popov wrote:

4)Place stop loss just below the low of the signal bar

You cannot do it in FSB. Use some of the other exit options.

Posts: 22

Pages 1

You must login or register to post a reply

Forex Forum → Help and Support → Logic order

Similar topics in this forum