Topic: How to test this?

My strategy is like this.

SYMBOL              GBP/USD
TIMEFRAME         1 HOUR
LOTS                  1
STOPLOSS          30
TAKEPROFIT       20
SILIPAGE           3


PIVOT POINT  PP= (H+L+C)/3  (previous day's value)

LONG    WHEN    ASK=PP +20
SHORT  WHEN    BID=PP-20

State me the code for this.

Re: How to test this?

In the Forex Strategy Builder version you are using Pivot Point indicator uses the previous bar PP only.

Pivot Points from the previous day (in case of using lower time frame) is a new function we are currently testing.

We will publish this new version of FSB till the end of the week.

Re: How to test this?

You should clarify your entry rules. Do you want to buy when the price breaks above/below PP or on retracement. You should test the shift with FSB. May be you'll have better results if the shift is not exactly 20 pips.

Re: How to test this?

Market: GBPUSD 1 Hour
Spread in pips: 4
Swap Long in pips: 1
Swap Short in pips: -1
Commission: 0
Slippage in pips: 3

A same direction signal - Does nothing
An opposite direction signal - Does nothing
Permanent Stop Loss - None

[Opening Point of the Position]
Pivot Points
     Enter the market at the Pivot Point
     Base price  -  Previous day
     Vertical shift  -  20
     Use previous bar value  -  Yes

[Closing Point of the Position]
Stop Limit
     Exit at the Stop Loss or the Take Profit level
     Stop Loss  -  -30
     Take Profit  -  20