I have tested yet the pyramiding and it doesn't work, it blows the account at the beginning of the test... Since 2002/01/01: image Since 2002/05/01 (beginning of a long uptrend): image
I don't know how to create an script for that, but I have made an excel template for calculating the distance of the SL in pips, you have to enter the lots, your balance, the risk in %, if you are gonna buy (B) or sell (S) and the price. Hope this ...