Forum

Background color

Hello, How do I color the background of the chart based on a MAcrossover

Dots on the chart

Hello, How can draw a color dot on the chart to represent maybe my stop loss . I see how to do a cross but I like dots

Ticket Order values

Hello, I am keeping track of my ticket # in the code. Initially when I open an order, I get a ticket # for that order. If I modify the order, the ticket # is still the same. If I exit 1/2 the positions, the ticket # changes. How do I get that new ticket #? -Mike

Symbol() not working

Hello, I use the following code on a EURUSD chart but the condition never becomes true. What am I doing wrong? if (Symbol() == "EURUSDm" || Symbol() == "EURUSD") { MagicNumber = MagicNumber + 11; inst="EURUSD"; Print("here2"); } -Mike

Daylight saving time

Hello, How does MetaTrader handle daylight savings time ? -Manesh

What I am not thinking about?

Hello, I want to create a program where I place a Buy and Sell Stop order. When one gets filled, I want to cancel the other order. How do I do that? I tried using Totalorders but that tells me the total pending and open order. I also tried to use if ( OrderSelect (ticketsell,SELECT_BY_TICKET)==true)

tradestation

Hello, Has anyone triggered orders into metatrader brokerage through a strategy in tradestation? If so,, how did you do it? -Mike