<div style="background-color: #E3FBE5;">'''Note 2''': Example is valid for price orders only. It will work differently for market orders.</div>
<div style="background-color: #E3FBE5;">'''Note 3''': If your script requires a number of bars for calculation the price for an order and this number of bars is greater than MaxBarsBack value, the example is not valid.</div>
<div style="background-color: #E3FBE5;">'''Note 4''': In this example an ideal and very simple situation is described. Different resolutions, presence of session breaks on chart and many other factors make it much more complicated.