Can anyone help me to write a c# script in the Tools -> script editor that interpolates data into weekends and holidays for a symbol.
Ex:
If the price closes at $100 on Friday and at $103 on Monday, prices for Saturday and Sunday would be $101 and $102 respectively.
If $100.04 is the closing price on Thursday and $100 on Monday, $100.03 $100.02 $100.01 would be for Friday, Saturday and Sunday respectively.
My database in question already have continuous dates only that the values for Saturday, Sunday and holidays are zero or N/A.
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.