Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Attenzione Preso Dal Forum Qta Da Macrco Baruzzi, Da Testare Realmente
- // Facendo Anche Un PLot !!!.
- inputs:
- SL(125);
- var:
- lowestLow(0), // Lowest low during London session
- buyLimitPrice(0); // Price for buy limit order
- // Calculate the lowest low during the London session
- if (Time >= 700 and Time < 1500) then
- lowestLow = Lowest(low, (1500 - 700 + 100)/100);
- // Wait for the New York session to start
- if (Time >= 1200) then
- buyLimitPrice = lowestLow; // Set buy limit price
- // Place a buy limit order
- if (Time >= 1200 and Time < 2000) then
- Buy("BuyLimit") next bar at buyLimitPrice limit;
- // Close the trade at the end of the New York session
- if (Time >= 2000) then
- Sell("CloseTrade") next bar at market;
- setstoploss_pt(SL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement