Forum

How to set limit for max bars in history and max bars in chars?

Dear Friends~ I want to put some code in the indicator about setting limit for max bars in history and max bars in chars, Preventing too much data loading on the chart make CPU slow down or terminal freeze. Even if some one set the value as 999999999999,the indicator will optimize value to limit

How to open OrderWindow?

Dear Programmers: As the title,I want to open an order window with mouse object on click. ChartOpen() is for currency chart,but I couldn't find any function about opening order window. What should I do? Would anyone please do me a favor? Thanks a lot