shugParticipant
Junior
The general idea was if i could calculate the miles traveled and retracement distance in points and convert them to miles i could figure out the overall destination of the big bank moves so I could figure out the reversal points accurately and make a lot of points from it, It works to a certain extent but there re deviations I couldn’t figure out, probably to do with trades like myself and others orders
Hi All
London trader looking for some general chat about naked trading
Anyone active ?
Hi everyone,
Does anyone know how I could have a running total of the pips I’ve accumulated while scalping? I want to remove the PNL value and only show the total pips for the day. Maybe there is some indicator that someone has coded that does this?
Kind regards,
Neel
Hi UKCityGent,
Are you trading in a similar manner to what Shug described in the first post of this thread?
Neel
There you go, simply run it in Backtest:
MyLongConditions = close CROSSES OVER average[20.0](close) AND Not LongOnMarket
MyShortConditions = close CROSSES UNDER average[20.0](close) AND Not ShortOnMarket
TPmultiplier = 2.0
IF MyLongConditions THEN
BUY 1 CONTRACT AT MARKET
SLprice = lowest[5](low)
TPprice = close + ((close - SLprice) * TPmultiplier)
SET STOP PRICE SLprice
SET TARGET PRICE TPprice
ELSIF MyShortConditions THEN
SELLSHORT 1 CONTRACT AT MARKET
SLprice = highest[5](high)
TPprice = close - ((SLprice - close) * TPmultiplier)
SET STOP PRICE SLprice
SET TARGET PRICE TPprice
ENDIF
tempPIPS = 0
IF OnMarket THEN
tempPIPS = PositionPrice * PositionPerf / PipSize
ENDIF
StrategyPIPS = StrategyProfit / PipSize / PipValue
TotalPIPS = StrategyPIPS + tempPIPS
//
Graph tempPIPS AS "current temp PIPS" coloured("Fuchsia")
Graph StrategyPIPS AS "accumulated PIPS" coloured("Blue")
Graph TotalPIPS AS "total PIPS" coloured("Green")
GraphOnPrice TPprice AS "Target" coloured("Blue")
GraphOnPrice SLprice AS "Stop Loss" coloured("Red")
Wow, that was quick thanks Roberto. Can I use this as an indicator when I’m manually trading?
Yes, but you need to keep the backtest open and updated trade after trade.
Do I need the Premium version to do the backtest as I’m not seeing this option on my ProRealTime menu options?
No you don’t need the Premium version.
Do a backtest and leave the backtest running as – from that point on – the code runs on Demo Live data.