Multiple buylimit or selllimit

Created at 13 Dec 2018, 05:03
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
G6

g61232

Joined 15.11.2017

Multiple buylimit or selllimit
13 Dec 2018, 05:03


How to open multiple buylimit orders, such as: at the current price of gold every 50 points to open a buylimit order for a total of 10 how to write


@g61232
Replies

PanagiotisCharalampous
13 Dec 2018, 10:03

Hi jasson gu,

Here is an example 

            for (int i = 1; i <= 10; i++)
            {
                PlaceLimitOrder(TradeType.Buy, Symbol, 1000, Symbol.Ask - (50 * i * Symbol.PipSize));
            }

Best Regards,

Panagiotis


@PanagiotisCharalampous