Hi Nicolas!
i saw this thread: https://www.prorealcode.com/prorealtime-indicators/scalping-index-indicator/
since i dont know french, i cant tell if you made an algo from this indi? If not, could you help me doing so? 🙂
Just replace the DRAWTEXT instructions with ones that can open orders: BUY, SELLSHORT 🙂
@ullle73 … let us know how you get on please?
btw … I often copy and paste text from library posts into google translator to get english or whatever language.
Or when using Chrome browser, right click and choose language from and to (under Options) and chrome will translate.
Reason you have to choose language from and to is that library posts can contain several languages.
sorry, i dont get it right. Could you Nicolas change in the code how to get it right? 🙂
//PRC_Scalper Indices | indicator
//14.11.2017
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//translated from MQL4 code
TODFromHour = 080000 //time of the day
TODToHour = 200000 //time of the day
inTimeInterval = time>=TODFromHour and time<TODToHour
//short term stochastic
sto = stochastic[5,3]
//long term stochastic
stol = stochastic[233,1]
ma100 = average[100,2](close)
ma50 = average[50,2](close)
//atr = averagetruerange[14]
if inTimeInterval and barindex>233 then
if stol>52.01 and sto<10.1 and close>MA100 and close>MA50 then
BUY 1 CONTRACT AT MARKET
endif
if stol<52.01 and sto>89.9 and close<MA100 and close<MA50 then
sell 1 CONTRACT AT MARKET
endif
endif
SET STOP PLOSS 50
SET TARGET PPROFIT 50
i only want to enter when the indicator drawed the arrows, and want to have a 50 point target and 50 SL
Hey don’t get disheartened @ullle73 … you did good … it has potential! Good equity curve and good stats!?
All I did was change line 6 and 15 … see attached .itf. Plenty more scope for improvements?
I will look at it again tomorrow, off to bed now! 🙂
EDIT / PS
I just noticed … it needs to be Sell at Market (not Sell 3 shares at Market) as PRT doesn’t allow partial closures.
thanks!! changed to sellshort at market. Let me know if you find something else to optimize it 🙂