- Februarie 12, 2014
- Gepos deur: Forex Wiki-span
- Kategorie: Ongekategoriseer
Naam: |
|
||
Skrywer: | Louis Christian Stoltz (2014.02.11 14:58) | ||
Afgelaai: | 135 | ||
Aflaai: |
|
||
Skrywer: Louis Christian Stoltz
Beskrywing:This indicator will calculate pips wins and losses for any pair with a parsar and doji star trading strategy. You can see pip targets and losses and see if you can find a winning pair with this. 5MIN charts are the best on current settings. Dont risk your account on this, there still high pip losses I see that are high risk. If you use micro lots then maybe its ok. This can save your life in forex. Beeld:Here is an expert to backtest. You can see its pretty risky so use microlots. This is just for studying the market, I havent traded with this. #property link "[email protected]" /** Louis Christian Stoltz _____ / ___ \ / / _ \ \ /( /( /(_)\ )\ )\ ( \ \ ___ / / ) ( \ _____ / ) /( )\ | \ / | | \ _______ / | \ / \ / \ / \/ | | \/ | | | | |_| **/ /** Global Variables **/ double glbOrderProfit; double glbOrderOpen; double glbOrderStop; double glbOrderType; double glbOrderTicket; int gblOrderPips; int start() { int MagicBuy = 7647; int MagicSell = 7648; double sell = iCustom(Simbool(),Tydperk(),"RosyPipsIndicator",0,1); double buy = iCustom(Simbool(),Tydperk(),"RosyPipsIndicator",1,1); as(OrderFind(MagicSell,Simbool()) == false && OrderFind(MagicBuy,Simbool()) == false && verkoop != 0){ OrderSend(Simbool(),OP_VERKOOP,5,Bied,3,Bid+2500*Point,Bid-100*Point,"Sell Order" + Simbool(),MagicSell,0,Green); } as(OrderFind(MagicSell,Simbool()) == false && OrderFind(MagicBuy,Simbool()) == false && koop != 0){ OrderSend(Simbool(),OP_KOOP,5,Vra,3,Ask-2500*Point,Ask+100*Point,"Buy Order" + Simbool(),MagicBuy,0,Green); } } /** Order Find Function **/ bool OrderFind(int Magic, string symbol) { glbOrderType = -1; glbOrderTicket = -1; glbOrderProfit = 0; glbOrderOpen = -1; glbOrderStop = -1; gblOrderPips = 0; int total = OrdersTotal(); double point =MarketInfo(symbol,MODE_POINT); bool res = false; vir(int cnt = 0 ; cnt < totaal ; cnt++) { Bestel Kies(cnt, SELECT_BY_POS, MODE_TRADES); as(OrderMagicNumber() == Magic && Bestelsimbool() == symbol) { glbOrderType = OrderType(); glbOrderTicket = OrderTicket(); glbOrderProfit = OrderProfit(); glbOrderOpen = OrderOpenPrice(); glbOrderStop = OrderStopLoss(); as (glbOrderType == OP_BUY)gblOrderPips = (OrderClosePrice() - OrderOpenPrice())/point; as (glbOrderType == OP_SELL)gblOrderPips = (OrderOpenPrice() - OrderClosePrice())/point; res = true; } } return(res); } |