Amibroker Pyramiding

Determine if you will exit all units at once or scale out gradually as targets are reached. Backtesting and Optimization

// Stage 1: Initial Entry Stage1 = Trend AND Cross( C, EMA( C, 20 ) ); amibroker pyramiding

if( Sell ) printf( "Exit at " + NumToStr( C, 1.4 ) + " Total Profit: " + NumToStr( (C - AvgEntry)/AvgEntry * 100, 1.2 ) + "%%\n" ); Determine if you will exit all units at

// Exit Condition Sell = C < EMA( C, 200 ); 20 ) )