hey all.
does anyone knows about the possibility to combine screening and automated trading (execution) in PRT?
Would be very interesting and the next big step in PRT in my opinion. Are there any conversions to this.
No, you can only use a screener and execute a strategy like this one, when a signal is returned:
ONCE TP = 50
ONCE SL = 20
ONCE LotSize = 1
ONCE GoLong = 1 //any other value to go SHORT
IF (Not OnMarket AND OnMarket[1]) OR (StrategyProfit <> StrategyProfit[1]) THEN
Quit
ENDIF
IF Not OnMarket THEN
IF GoLOng = 1 THEN
BUY LotSize CONTRACTS at Market
ELSE
SELLSHORT LotSize CONTRACTS at Market
ENDIF
ENDIF
SET TARGET pPROFIT TP
SET STOP pLOSS SL
after setting your preferred values in the first 4 lines.
Hello Roberto,
I think what Mr.Crni means is the possibility to have in an algorithm multiple indices.
nasdaqClose, nasdaqOpen, nasdaqHigh, nasdaqLow = CALL "GetNasdaq"
dowClose, dowOpen, dowHigh, dowLow = CALL "GetDow"
daxClose, daxOpen, daxHigh, daxLow = CALL "GetDax"
// Do something with that
For example to automatically apply metrics to the nasdaq, dax and dow and during combine the information collected to trade another indices or one of the mentionned.
Regards Daniel
No, screeners can deal with multiple instruments (securities, shares) belonging to the same index, using only the EQUITYFRAME instruction (https://www.prorealcode.com/documentation/equityframe/).
I moved this topic to the correct forum from the ProRealTime platform support forum.