Functions by Category Functions by Alphabetical list
NextBarOpen |  | NextBarOpen is used to create stop and limit prices based upon the next bar's open. This function, is used in conjunction with basic arithmetic (plus and minus) operators to create a "value" which will become real once the next tick becomes available. NextBarOpen can not be used in complex expressions, indicators or charts since it doesn't actually return anything tangible (i.e., it doesn't "look ahead" and return the next bars open).During real-time trading, orders that use NextBarOpen are kept on hold until the next bars open is available - in most cases, there will not be any noticeable delay in the order reaching the broker. Examples: #Place a buy stop order with a stop of the next bars open.
PlaceBuyStop('Entry',100,NextBarOpen);
#Place a buy limit order with a limit of the next bars
#open+the value of the 45 bar ATR.
PlaceBuyLimit('Entry',200,NextBarOpen+Now(ATR(45)));
PlaceBuyStopLimit('Entry',200,NextBarOpen-0.12,NextBarOpen+0.12);
Related functions: BuyOpen , SellOpen , SellStop , BuyStop , BuyLimit , SellLimit , BuyStopLimit , SellStopLimit , StopLoss , PlaceBuyOpen , PlaceSellOpen , PlaceBuyStop , PlaceSellStop , PlaceBuyLimit , PlaceSellLimit , PlaceBuyStopLimit , PlaceSellStopLimit , PlaceStopLoss , PlaceSellMarketClose , PlaceBuyMarketClose , PlaceBuyAtPrice , PlaceSellAtPrice , OnFill
|