Forums › ProRealTime foro Español › Soporte ProOrder › Otro sistemas mas… a ver quien me puede ayudar › Reply To: Otro sistemas mas… a ver quien me puede ayudar
10/03/2022 at 1:32 AM
#201797
Aquí está con los cambios necesarios:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
DEFPARAM FlatAfter = 220000 //close any open trade at this time DEFPARAM FlatBefore = 080000 //do not open any trade before this time Sma4 = average[4,0](close) Sma8 = average[8,0](close) Sma14 = average[14,0](close) // Entrada IF Sma4 CROSSES OVER Sma14 THEN BUY 1 CONTRACT AT MARKET ELSIF Sma4 CROSSES UNDER Sma14 THEN SELLSHORT 1 CONTRACT AT MARKET ENDIF // Salida IF LongOnMarket AND Sma4 CROSSES UNDER Sma8 THEN SELL AT MARKET ELSIF ShortOnMarket AND Sma4 CROSSES OVER Sma8 THEN EXITSHORT AT MARKET ENDIF SET STOP pLOSS 100 SET TARGET pPROFIT 300 |